Files
supabase/apps/studio/data/api-keys/keys.ts
Stojan Dimitrovski 800d688d4c fix: api key mutations invalidate proper keys (#37467)
* fix: api key mutations invalidate proper keys

* Fix the RQ keys for API keys.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2025-07-25 17:47:44 +02:00

7 lines
339 B
TypeScript

export const apiKeysKeys = {
list: (projectRef?: string, reveal?: boolean) =>
['projects', projectRef, 'api-keys', reveal].filter(Boolean),
single: (projectRef?: string, id?: string) => ['projects', projectRef, 'api-keys', id] as const,
status: (projectRef?: string) => ['projects', projectRef, 'api-keys', 'legacy'] as const,
}