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

11
pages/dashboard.vue Normal file
View File

@@ -0,0 +1,11 @@
<script setup lang="ts">
definePageMeta({
middleware: ['auth'],
layout: "authenticated",
});
</script>
<template>
<div>
<h3>Dashboard</h3>
</div>
</template>

11
pages/index.vue Normal file
View File

@@ -0,0 +1,11 @@
<script setup lang="ts">
definePageMeta({
middleware: ['auth'],
});
</script>
<template>
<div>
<h3>Index</h3>
<NuxtLink to="/login">Login</NuxtLink>
</div>
</template>

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>