Skip to content

Commit 800d688

Browse files
hfivasilov
andauthored
fix: api key mutations invalidate proper keys (supabase#37467)
* fix: api key mutations invalidate proper keys * Fix the RQ keys for API keys. --------- Co-authored-by: Ivan Vasilov <[email protected]>
1 parent b215b98 commit 800d688

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/studio/data/api-keys/api-key-create-mutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function createAPIKey(payload: APIKeyCreateVariables) {
3636
? {
3737
// secret_jwt_template: payload?.secret_jwt_template || null,
3838
secret_jwt_template: {
39-
role: 'service_role', // @mildtomato (Jonny) this should be default in API for type secret
39+
role: 'service_role',
4040
},
4141
}
4242
: name),

apps/studio/data/api-keys/keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const apiKeysKeys = {
22
list: (projectRef?: string, reveal?: boolean) =>
3-
['projects', projectRef, 'api-keys', reveal] as const,
3+
['projects', projectRef, 'api-keys', reveal].filter(Boolean),
44
single: (projectRef?: string, id?: string) => ['projects', projectRef, 'api-keys', id] as const,
55
status: (projectRef?: string) => ['projects', projectRef, 'api-keys', 'legacy'] as const,
66
}

0 commit comments

Comments
 (0)