feat: update API client and remove unused services; enhance error handling and configuration

This commit is contained in:
JSC
2025-07-26 19:49:00 +02:00
parent 6ce83c8317
commit 6018a5c8c5
14 changed files with 14 additions and 606 deletions

View File

@@ -20,15 +20,11 @@ export function AuthCallbackPage() {
throw new Error('No authorization code received')
}
console.log('Exchanging OAuth code for tokens...')
// Exchange the temporary code for proper auth cookies
const result = await api.auth.exchangeOAuthToken({ code })
console.log('Token exchange successful:', result)
// Now get the user info
const user = await api.auth.getMe()
console.log('User info retrieved:', user)
// Update auth context
if (setUser) setUser(user)