initial commit

This commit is contained in:
Michael Dausmann
2023-01-02 16:35:39 +11:00
commit 6632e707ce
13 changed files with 13713 additions and 0 deletions

20
pages/login.vue Normal file
View 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>