update supabase and use auth client for auth

This commit is contained in:
Michael Dausmann
2023-01-28 11:16:32 +11:00
parent d19b713f25
commit d8e3147138
4 changed files with 10 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
const user = useSupabaseUser()
const supabase = useSupabaseClient();
const supabase = useSupabaseAuthClient();
watchEffect(() => {
if (user.value) {
navigateTo('/dashboard', {replace: true})