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

How to update JWT secrets/tokens? #84

Open
mattrigg9 opened this issue Dec 16, 2023 · 1 comment
Open

How to update JWT secrets/tokens? #84

mattrigg9 opened this issue Dec 16, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@mattrigg9
Copy link
Contributor

mattrigg9 commented Dec 16, 2023

Improve documentation

Describe the problem

I've been struggling to figure out how to rotate the anon and service API tokens. I see that there's a JWTSecret in Secrets Manager that the JsonWebTokenFunction lambda pulls from to generate the JWTs. And I can see that Supabase validates the JWTs using this same secret. If I wanted to change this JWTSecret value (either manually or programmatically), how can I force the JsonWebTokenFunction lambda to run again and regenerate the JWT tokens? Updating the stack doesn't seem to make the lambda run again. Thanks!

Describe the improvement

A clear and concise description of the improvement.

Additional context

Add any other context or screenshots that help clarify your question.

@mattrigg9 mattrigg9 added the documentation Improvements or additions to documentation label Dec 16, 2023
@mattrigg9
Copy link
Contributor Author

@mats16 any thoughts here?

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

No branches or pull requests

1 participant