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

Getting auth error [Error: Closed. Original cause [Error: [AUTHORIZATION] Authorization failed Generate a new JWT secret on Supabase #366

Open
vaibhavbucchaSureworx opened this issue Oct 28, 2024 · 4 comments

Comments

@vaibhavbucchaSureworx
Copy link

While authentication we are getting success but that auth session isn't persist we are getting logged out immediately and getting following error.

[PowerSyncRemote] [Error: Closed. Original cause [Error: [AUTHORIZATION] Authorization failed
Generate a new JWT secret on Supabase. Cause: unrecognized configuration parameter "app.settings.jwt_secret"
(severity "ERROR", file "guc.c", line 5710, routine "find_option")].]

I have checked all the variables which we have declared in the .env file all values and keys are correct, Although we are getting defined values as well wherever we are using them.

@Chriztiaan
Copy link
Contributor

Hey @vaibhavbucchaSureworx, the first question I would ask is whether your Supabase project had been paused before?
You can see in the error the recommendation of generating a new JWT secret on Supabase.

If this is an unreleased product resetting should be safe, otherwise see https://discord.com/channels/1138230179878154300/1288256116408586343/1288612779636428820

@Chriztiaan
Copy link
Contributor

Hey @vaibhavbucchaSureworx, any luck with this?

@amjadbouhouch
Copy link

Just I wanna mention, I only encounter this error when I connect to my phone's hotspot.

@rcasari1987
Copy link

I had the same issue. In my case, I'm using Supabase but with a third-party authentication integration (Cognito). To fix this error, you just need to change the JWT secret in the settings->api->jwt secret panel

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

4 participants