initial commit
This commit is contained in:
20
pages/login.vue
Normal file
20
pages/login.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
definePageMeta({
|
||||
middleware: ['auth'],
|
||||
});
|
||||
|
||||
const supabase = useSupabaseAuthClient();
|
||||
|
||||
async function signInWithGoogle() {
|
||||
const { data, error } = await supabase.auth.signInWithOAuth({
|
||||
provider: 'google',
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
Login
|
||||
<button @click="signInWithGoogle()">Sign In with Google</button>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user