Files
supabase/apps/studio/data/auth/keys.ts
T
Joshen LimandAlaister Young 536dc37d58 Chore/user management v2 panel part 2 (#29515)
* Set up banning and unbanning user, although untested due to API CORs issue

* Update search filter UI for users management V2

* Update API types

* Minoir

* Small fix

* Update UI

* Add support for resizing and re-ordering columns

* Add google profile image url to csp

* Revert test button

* Implement toggling of columns

* Fix loading

* Fully implement banning/unbanning user

* Fix

* Update apps/studio/components/interfaces/Auth/Users/UserOverview.tsx

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>

* Fallback non CSP supported avatar urls to user icon

* Fix some bugs

* Remove prism-react-renderer from studio, add to ui patterns

* Migrate users query from API to studio

* Address some feedback

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-10-01 14:32:46 +08:00

33 lines
1.0 KiB
TypeScript

export const authKeys = {
users: (
projectRef: string | undefined,
params?: {
page: number | undefined
keywords: string | undefined
filter: string | undefined
}
) => ['auth', projectRef, 'users', ...(params ? [params] : [])] as const,
usersInfinite: (
projectRef: string | undefined,
params?: {
keywords: string | undefined
filter: string | undefined
providers: string[] | undefined
sort: string | undefined
order: string | undefined
}
) => ['auth', projectRef, 'users-infinite', ...(params ? [params].filter(Boolean) : [])] as const,
usersCount: (
projectRef: string | undefined,
params?: {
keywords: string | undefined
filter: string | undefined
providers: string[] | undefined
}
) => ['auth', projectRef, 'users-count', ...(params ? [params].filter(Boolean) : [])] as const,
authConfig: (projectRef: string | undefined) => ['auth', projectRef, 'config'] as const,
accessToken: () => ['access-token'] as const,
}