From 53b59bd95fb3efb5b80207331bae65829ce662df Mon Sep 17 00:00:00 2001 From: flfeders Date: Fri, 8 Nov 2024 17:45:34 +0100 Subject: [PATCH] Integration of MS365 Login into Login --- pages/login.vue | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/pages/login.vue b/pages/login.vue index 2e3af26..250d9b9 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -36,6 +36,17 @@ const fields = [{ placeholder: 'Passwort' }] +const authenticateWithAzure = async () => { + const { data, error } = await supabase.auth.signInWithOAuth({ + provider: 'azure', + options: { + scopes: 'email', + }, + }) + + console.log(data) + console.log(error) +} const onSubmit = async (data) => { @@ -94,19 +105,26 @@ const onSubmit = async (data) => { dark="/Logo_Dark.png" /> - -