https://supabase.com/ logo
#help
Title
# help
r

Reizouko

01/22/2022, 3:14 PM
Is there any way to get the jwt secret for the local version of supabase? The hosted version has it in the dashboard and I can access it in postgres with
show app.settings.jwt_secret;
, but this command does not work on my local supbase and there is no settings page that shows the secret either.
o

osaxma

01/22/2022, 4:01 PM
The key in local dev is literally:
your-super-secret-jwt-token-with-at-least-32-characters-long
source: https://github.com/supabase/supabase/blob/3c86c6ebeaff59a258277081420f6cdf31edfd36/docker/.env.example#L5
though i'm not sure where to access it when you're developing locally (maybe you can add it to the
.env
to override the default one -- haven't tried that tho)
r

Reizouko

01/22/2022, 4:16 PM
Thanks a lot!
o

osaxma

01/29/2022, 6:05 PM
for reference, when using the cli, the secret is
super-secret-jwt-token-with-at-least-32-characters-long
without
your-
.. Source: https://github.com/supabase/cli/tree/main/internal/utils/templates/initial_schemas#how-to-generate-initial-schemas A proper way to get the secret at any time is to enter the container using docker:
Copy code
docker exec -it <container_id_for_supabase_auth>
Then in the container run:
Copy code
printenv
which will list all the environment variables including
GOTRUE_JWT_SECRET
2 Views