UNPKG

@better-auth-ui/core

Version:

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

9 lines (8 loc) 815 B
/** Query key factory for API key queries, scoped per user. */ export declare const apiKeyQueryKeys: { readonly all: (userId: string | undefined) => readonly ["auth", "user", string | undefined, "apiKey"]; readonly lists: (userId: string | undefined) => readonly ["auth", "user", string | undefined, "apiKey", "list"]; readonly list: <TQuery = undefined>(userId: string | undefined, query?: TQuery) => readonly ["auth", "user", string | undefined, "apiKey", "list", NonNullable<TQuery> | null]; readonly details: (userId: string | undefined) => readonly ["auth", "user", string | undefined, "apiKey", "detail"]; readonly detail: <TQuery = undefined>(userId: string | undefined, query?: TQuery) => readonly ["auth", "user", string | undefined, "apiKey", "detail", NonNullable<TQuery> | null]; };