We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d921f5 commit a9646f6Copy full SHA for a9646f6
account.html
@@ -50,6 +50,19 @@
50
window.location.href = authUrl;
51
}, 2000);
52
}
53
+ // Simulate checking if the user is logged in
54
+ function checkAuth() {
55
+ const urlParams = new URLSearchParams(window.location.search);
56
+ const authSuccess = urlParams.get('success'); // Example: Scratch Auth might return '?success=true'
57
+
58
+ if (authSuccess === 'true') {
59
+ // Redirect to index.html if login was successful
60
+ window.location.href = 'index.html';
61
+ }
62
63
64
+ // Run this check when the page loads
65
+ window.onload = checkAuth;
66
</script>
67
</head>
68
<body>
0 commit comments