How to handle unregistered users?
expected :
prevent user from going through protected pages when the user is not even in the dashboard (the owner have to assign their email only to be able to login and using the app)
what's happen :
user be able to see protected page even they not fully logged (and the console thrown "/auth/callback?error=access_denied&error_code=signup_disabled&error_description=Signups+not+allowed+for+this+instance"
prevent user from going through protected pages when the user is not even in the dashboard (the owner have to assign their email only to be able to login and using the app)
what's happen :
user be able to see protected page even they not fully logged (and the console thrown "/auth/callback?error=access_denied&error_code=signup_disabled&error_description=Signups+not+allowed+for+this+instance"
login functionmiddleware.ts- NextJS: 15.5.6
- @supabase/ssr: 0.7.0
- @supabase/supabase-js: 2.76.1