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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Supabase SSR to sign in #57

Open
Revarh opened this issue May 20, 2024 · 1 comment
Open

New Supabase SSR to sign in #57

Revarh opened this issue May 20, 2024 · 1 comment

Comments

@Revarh
Copy link
Contributor

Revarh commented May 20, 2024

Hello !

Since Supabase released their new auth system, it seems RA-supabase is not anymore able to provide password creation/reset.
When I create a user account, the person receives a confirmation email with an invite to set a password. But in the end the person is redirected to the login page with an error in the URL. And the same happens when a password recovery email is sent:

SITE_URL/#error=access_denied&error_code=403&error_description=Email+link+is+invalid+or+has+expired

After doing some research on that error, it seems Supabase released @supabase/ssr, with a documentation : https://supabase.com/docs/guides/auth/passwords#server-side-rendering-ssr

I can be wrong, but supabase-core may need an update regarging that new package ?

If it is not the case I would appreciate any insight.

Thank you

@djhi
Copy link
Collaborator

djhi commented May 21, 2024

I actually got the same issue on a personal project built with Remix and @supabase/ssr. Updating the package did not solve it. I'm still investigating. Besides, we do not use @supabase/ssr in ra-supabase and I don't think we should as it's meant for SSR

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

No branches or pull requests

2 participants