Closed QThans closed 6 months ago
after refresh, login status invalid, the middleware determines whether the login error occurred and jumps to the login page.
Hello, @QThans.
Did you find a solution? I'm going through the same problem.
caiotarifa
for me, caused by the wrong code for using useSupabaseClient
.
How did you solve it?
https://supabase.nuxtjs.org/usage/composables/usesupabaseuser
This middleware returns null for the user. If I remove the middleware, I can access user via useSupabaseUser
in other places
I can get user by using
const { supabaseUser } = useSupabaseUser(supabase)
. However, the middleware is not working well, it redirects to '/login' every time.