Files
supabase/studio/data/auth/keys.ts
T
Joshen Lim 95344c246b Chore/deprecate local observable (#17642)
* Deprecate local observable in api.tsx

* Deprecate local observable in auth users pqage

* Replace prop drilling refetch with proper query invalidation in mutations
2023-09-26 13:25:38 +08:00

13 lines
412 B
TypeScript

export const authKeys = {
users: (
projectRef: string | undefined,
params?: {
page: number | undefined
keywords: string | undefined
verified: string | undefined
}
) => ['auth', projectRef, 'users', ...(params ? [params] : [])] as const,
authConfig: (projectRef: string | undefined) => ['auth', projectRef, 'config'] as const,
accessToken: () => ['access-token'] as const,
}