Start adding apple auth

This commit is contained in:
2025-06-04 17:00:19 -05:00
parent ab7559555e
commit f51e78ed2f
5 changed files with 75 additions and 3 deletions

View File

@ -67,7 +67,19 @@ export const signInWithMicrosoft = async (): Promise<Result<string>> => {
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'azure',
options: {
scopes: 'email',
scopes: 'openid, profile email offline_access',
}
});
if (error) return { success: false, error: error.message };
return { success: true, data: data.url};
};
export const signInWithApple = async (): Promise<Result<string>> => {
const supabase = await createServerClient();
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'apple',
options: {
scopes: 'openid, profile email offline_access',
}
});
if (error) return { success: false, error: error.message };