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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: redirected user's back to where they were before authenticating #1075

Closed
2 tasks done
OgDev-01 opened this issue Apr 3, 2023 · 4 comments 路 Fixed by #1240
Closed
2 tasks done

Feature: redirected user's back to where they were before authenticating #1075

OgDev-01 opened this issue Apr 3, 2023 · 4 comments 路 Fixed by #1240

Comments

@OgDev-01
Copy link
Contributor

OgDev-01 commented Apr 3, 2023

Type of feature

馃崟 Feature

Current behavior

Users are taken back to the root "/" after authenticating which is not an ideal experience

Suggested solution

Users should be redirected back to where they were before authenticating

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributing Docs

  • I agree to follow this project's Contribution Docs
@OgDev-01
Copy link
Contributor Author

@brandonroberts I went through the supabase docs on redirect Url here and understood that the redirectTo key can be used to set a redirect Url on signIn.

But i've tried testing with out current implementation but i doesn鈥檛 seem to work as describe in the docs
redirect

Am i missing something?

@0-vortex
Copy link
Contributor

@brandonroberts I went through the supabase docs on redirect Url here and understood that the redirectTo key can be used to set a redirect Url on signIn.

But i've tried testing with out current implementation but i doesn鈥檛 seem to work as describe in the docs redirect

Am i missing something?

Yes, the supabase docs have changed very much this year, with them generally not mentioning any of the auth changes as breaking. They suggest making wrappers around this now: https://supabase.com/docs/guides/auth#redirect-urls-and-wildcards, while setting different redirect URLs for them to actually work:

Screenshot 2023-04-14 at 11 23 42

With the above being done on both dev and the production database, you should now be able to properly redirect anywhere!

@github-actions
Copy link

github-actions bot commented Jun 6, 2023

馃帀 This issue has been resolved in version 1.51.0-beta.1 馃帀

The release is available on GitHub release

Your semantic-release bot 馃摝馃殌

@github-actions
Copy link

github-actions bot commented Jun 6, 2023

馃帀 This issue has been resolved in version 1.51.0 馃帀

The release is available on GitHub release

Your semantic-release bot 馃摝馃殌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants