Attempt a client side navigate post sign in

This commit is contained in:
Michael Dausmann
2023-01-02 17:04:04 +11:00
parent 4b77fe8d46
commit 0dbc33a145

View File

@@ -9,6 +9,7 @@
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'google',
})
navigateTo('dashboard'); // This doesn't work, it navigates prior to the login handshake completing and then the handshake lands on the index page and ignores the middleware.
}
</script>