Complete the code to initialize Supabase client with the correct URL.
const supabase = createClient('[1]', 'public-anon-key');
The Supabase client needs the project URL to connect properly.
Complete the code to start OAuth sign-in with Google provider.
const { data, error } = await supabase.auth.signInWithOAuth({ provider: '[1]' });To sign in with Google, the provider must be set to 'google'.
Fix the error in the code to sign in with GitHub OAuth provider.
const { data, error } = await supabase.auth.signInWithOAuth({ provider: '[1]' });The provider name must be all lowercase 'github' to work correctly.
Fill both blanks to configure OAuth redirect URL and scopes for GitHub.
const { data, error } = await supabase.auth.signInWithOAuth({ provider: 'github', options: { redirectTo: '[1]', scopes: '[2]' } });The redirect URL must be your app's callback URL, and scopes define permissions like 'read:user'.
Fill all three blanks to handle OAuth sign-in and check for errors.
try { const { data, error } = await supabase.auth.signInWithOAuth({ provider: '[1]' }); if ([2]) { console.error('Error:', [3]); } } catch (err) { console.error('Unexpected error:', err); }
Use 'github' as provider, check if 'error' exists, and log 'error.message' for details.
