supabase
supabase copied to clipboard
Make login page automatically redirect to homepage when logged in
Is your feature request related to a problem? Please describe.
I think it would be necessary for the login-page to automatically redirect to the hompeage when the user is already logged in. I don't understand why the user is able to access the login-page when user is already logged in...
Describe the solution you'd like
Make an included middleware that handles this, as i don't want to keep making the same middleware for each project.
Describe alternatives you've considered
I've considered making the middleware myself, but it just takes too much time for each project.
Thanks