Skip to content

How to update JWT secrets/tokens? #84

Open
@mattrigg9

Description

@mattrigg9

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions