Add Google Login

This commit is contained in:
2025-09-05 06:51:31 +02:00
parent 54353e06f2
commit b0b5149069
6 changed files with 130 additions and 18 deletions

View File

@@ -165,6 +165,16 @@ app.get('/adminlogin.html', (req, res) => {
res.sendFile(path.join(__dirname, 'public', 'adminlogin.html'));
});
/**
* OAuth Callback Route
* Handles OAuth redirects from Supabase (Google, etc.)
*/
app.get('/auth/callback', (req, res) => {
// Redirect to the main page after OAuth callback
// Supabase handles the OAuth flow and redirects here
res.redirect('/');
});
// ============================================================================
// STATIC FILE SERVING
// ============================================================================