mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
* 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>
33 lines
1.0 KiB
TypeScript
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,
|
|
}
|