feat: update API client and remove unused services; enhance error handling and configuration
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user