UNPKG

@better-auth-ui/core

Version:

Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.

21 lines (20 loc) 1.36 kB
/** Query keys contributed by the OAuth provider plugin. */ export declare const oauthProviderQueryKeys: { /** Prefix matching every OAuth provider query. */ readonly all: readonly ["auth", "oauthProvider"]; /** Prefix for public OAuth client metadata queries. */ readonly publicClients: readonly ["auth", "oauthProvider", "publicClient"]; /** Key for the public metadata of a specific OAuth client. */ readonly publicClient: (clientId: string | undefined) => readonly ["auth", "oauthProvider", "publicClient", string | null]; /** * Prefix for the signed-in user's OAuth consent queries. * * Scoped under `authQueryKeys.user(userId)` so one account's authorized * applications can never surface in another account's view. */ readonly consents: (userId: string | undefined) => readonly ["auth", "user", string | undefined, "oauthProvider", "consents"]; /** Key for the signed-in user's consent list. */ readonly listConsents: <TQuery = undefined>(userId: string | undefined, query?: TQuery) => readonly ["auth", "user", string | undefined, "oauthProvider", "consents", NonNullable<TQuery> | null]; /** OAuth clients owned by one explicit user or organization cache scope. */ readonly clients: (ownerKey: string | undefined) => readonly ["auth", "oauthProvider", "clients", string | null]; };