supabase-community/auth-ui

Auth UI Sign In Button doesn't redirect anywhere

robertwt7 opened this issue · 1 comments

Bug report

It's my first time using built in Auth UI in supabase so please let me know if i'm wrong

I have searched the bug everywhere, including current issues and from the old Auth UI repo here

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

When using Auth UI and clicking "Sign In" in nextJS app router app. The user was signed in and I can access the session, but it it doesn't redirect anywhere after. I have filled the redirectTo props to /dashboard and added it to my Redirect URLs lists in the settings too.

To Reproduce

  1. Implement Auth UI from supabase
  2. click sign in (or register) using email provider
  3. page doesn't go anywhere

Expected behavior

page should be redirected somewhere or at least has a callback to customise. otherwise user is just staying on the login page.

am i supposed to have a useEffect and get the session manually after? i still need some sort of notification to redirect or to know that the user has clicked it

Screenshots

Screenshot 2024-02-10 at 3 29 40 pm

System information

  • OS: MacOS
  • Browser (if applies) Chrome
  • Version of supabase-js: 2.39.3
  • Version of Node.js: 20.11.0

nevermind this is clarified here:
#188 (comment)