Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware not working well #370

Closed
QThans opened this issue May 14, 2024 · 3 comments
Closed

Middleware not working well #370

QThans opened this issue May 14, 2024 · 3 comments
Labels
question Further information is requested

Comments

@QThans
Copy link

QThans commented May 14, 2024

I can get user by using const { supabaseUser } = useSupabaseUser(supabase). However, the middleware is not working well, it redirects to '/login' every time.

@QThans QThans added the question Further information is requested label May 14, 2024
@QThans
Copy link
Author

QThans commented May 17, 2024

after refresh, login status invalid, the middleware determines whether the login error occurred and jumps to the login page.

@QThans QThans closed this as completed May 17, 2024
@caiotarifa
Copy link

Hello, @QThans.

Did you find a solution? I'm going through the same problem.

@QThans
Copy link
Author

QThans commented Jun 6, 2024

caiotarifa

for me, caused by the wrong code for using useSupabaseClient .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants