Minting my own JWTs with JWT Signing Keys - In production
Hey, I've been migrating to JWT signing keys.
In my setup/app I have a crucial requirement to mint my own keys (I did this previsouly with JWT secret). I have it working locally with JWT Signing Keys by generating a key with :
supabase gen signing-key --algorithm ES256
supabase gen signing-key --algorithm ES256
and then in my config.toml
# JWT signing keys for local developmentsigning_keys_path = "./signing_key.json"
# JWT signing keys for local developmentsigning_keys_path = "./signing_key.json"
I can use the key in the signing_key.json file to mint my own JWT, and it's all working well locally.
I now need to replicate this in production - How do I import a self generated signing key in production? (equivalent of setting signing_keys_path locally), so i can use JWTs minted with it?
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.