Ever since change was made to let root / exempted from auth middleware at bced73beaba553bcd66df71d46b6b228ccfe4573, the redirect now pauses at root with the user not being signed in, requiring 1 extra click to be directed to login which is poor UX
Changes
Add emailRedirectTo option when signUp is called with email & password credentials, allowing redirect to be explicitly to /account/auth/login so the user will login after confirming their email
New Flow
user click sign up
user input email + pwd & cfm pwd
user redirects to /account/auth/verify page to let user know that email is sent
user receives email
user clicks link on email & gets directed to /account/auth/confirm-signup page with a button that calls supabase api on click + a redirect url
user clicks button & gets redirected to /account/auth/login
Context
Current signup flow redirects user to the root
/
Ever since change was made to let root
/
exempted from auth middleware at bced73beaba553bcd66df71d46b6b228ccfe4573, the redirect now pauses at root with the user not being signed in, requiring 1 extra click to be directed to login which is poor UXChanges
Add
emailRedirectTo
option whensignUp
is called with email & password credentials, allowing redirect to be explicitly to/account/auth/login
so the user will login after confirming their emailNew Flow
/account/auth/verify
page to let user know that email is sent/account/auth/confirm-signup
page with a button that calls supabase api on click + a redirect url/account/auth/login