Spaces:
Runtime error
Runtime error
Update server.js
Browse files
server.js
CHANGED
|
@@ -168,7 +168,9 @@ async function handleOAuthCallback(req, res) {
|
|
| 168 |
console.error('[Dashboard] OAuth error:', err);
|
| 169 |
res.redirect('/?error=server_error');
|
| 170 |
}
|
| 171 |
-
}
|
|
|
|
|
|
|
| 172 |
|
| 173 |
// --- Check Auth Status ---
|
| 174 |
app.get('/api/me', (req, res) => {
|
|
|
|
| 168 |
console.error('[Dashboard] OAuth error:', err);
|
| 169 |
res.redirect('/?error=server_error');
|
| 170 |
}
|
| 171 |
+
}
|
| 172 |
+
app.get('/callback', handleOAuthCallback);
|
| 173 |
+
app.get('/auth/callback', handleOAuthCallback);
|
| 174 |
|
| 175 |
// --- Check Auth Status ---
|
| 176 |
app.get('/api/me', (req, res) => {
|