feat: Implement OAuth profile enhancement

This commit is contained in:
gpt-engineer-app[bot]
2025-10-11 23:56:44 +00:00
parent b8c9bf1784
commit d6f9f4d9a3
4 changed files with 391 additions and 1 deletions

View File

@@ -275,7 +275,11 @@ export default function Auth() {
} = await supabase.auth.signInWithOAuth({
provider,
options: {
redirectTo: `${window.location.origin}/auth/callback`
redirectTo: `${window.location.origin}/auth/callback`,
// Request additional scopes for avatar access
scopes: provider === 'google'
? 'email profile'
: 'identify email'
}
});
if (error) throw error;