Committing to hopefully figure out why photos aren't working in next.js

This commit is contained in:
2025-06-04 23:16:12 -05:00
parent f51e78ed2f
commit 3e0c23054a
12 changed files with 80 additions and 23 deletions

View File

@ -60,6 +60,31 @@ export const signIn = async (
}
};
export const signInWithMicrosoft = async (): Promise<Result<string>> => {
const supabase = createClient();
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'azure',
options: {
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 = createClient();
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'apple',
options: {
scopes: 'openid, profile email offline_access',
}
});
if (error) return { success: false, error: error.message };
return { success: true, data: data.url};
};
export const forgotPassword = async (formData: FormData): Promise<Result<string | null>> => {
const email = formData.get('email') as string;
const supabase = createClient();