Skip to content

Commit c4d46d5

Browse files
authored
docs: new entry in api keys faq (supabase#37305)
Answering a user question that showed up in feedback
1 parent 6a607dd commit c4d46d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/docs/content/guides/api/api-keys.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ If you know or suspect that the JWT secret itself is leaked, refer to the sectio
156156

157157
If the JWT secret is secure, prefer substituting the `service_role` JWT-based key with a new secret key which you can create in the [API Keys](/dashboard/project/_/settings/api-keys/new) dashboard. This will prevent downtime for your application.
158158

159+
### Can I still use my old `anon` and `service-role` API keys after enabling the publishable and secret keys?
160+
161+
Yes. This allows you to transition between the API keys with zero downtime by gradually swapping your clients while both sets of keys are active. See the next question for how to deactivate your keys once all your clients are switched over.
162+
159163
### How do I deactivate the `anon` and `service_role` JWT-based API keys after moving to publishable and secret keys?
160164

161165
You can do this in the [API Keys](/dashboard/project/_/settings/api-keys/new) dashboard. To prevent downtime in your application's components, use the last used indicators on the page to confirm that these are no longer used before deactivating.

0 commit comments

Comments
 (0)