mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(core): Make OAuth2 error handling consistent with success handling (#5555)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
19
packages/cli/templates/oauth-error-callback.handlebars
Normal file
19
packages/cli/templates/oauth-error-callback.handlebars
Normal file
@@ -0,0 +1,19 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>n8n - OAuth Callback</title>
|
||||
<style>
|
||||
body { font-family: 'Open Sans', sans-serif; padding: 10px;}
|
||||
pre.error { background: #f7f7f7; border: 1px solid #ddd; border-radius: 3px; padding: 10px; overflow: auto; overflow-wrap: break-word; white-space: pre-wrap; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{{#if error}}
|
||||
<h4>Error:</h4>
|
||||
<pre class='error'>{{error.message}}</pre>
|
||||
{{/if}}
|
||||
Failed to connect. The window can be closed now.
|
||||
<script>
|
||||
(function messageParent() { window.opener.postMessage('error', '*'); })();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user