@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
16 lines (15 loc) • 498 B
text/typescript
export const ssoQueryKeys = {
all: (userId?: string) => ["auth", "sso", userId ?? null] as const,
providers: {
all: (userId?: string) =>
[...ssoQueryKeys.all(userId), "providers"] as const,
detail: (userId: string | undefined, providerId: string | undefined) =>
[
...ssoQueryKeys.providers.all(userId),
"detail",
providerId ?? null
] as const,
list: (userId?: string) =>
[...ssoQueryKeys.providers.all(userId), "list"] as const
}
}