Microsoft Login is mostly working now

This commit is contained in:
2025-06-04 16:28:06 -05:00
parent 04dceb93bd
commit ab7559555e
13 changed files with 101 additions and 14 deletions

View File

@ -62,6 +62,18 @@ export const signIn = async (
}
};
export const signInWithMicrosoft = async (): Promise<Result<string>> => {
const supabase = await createServerClient();
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'azure',
options: {
scopes: 'email',
}
});
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 = await createServerClient();