UNPKG

@better-auth-ui/core

Version:

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

7 lines (6 loc) 661 B
import { MutationOptions } from '@tanstack/query-core'; import { BetterFetchError } from 'better-auth/client'; import { OneTapAuthClient } from './one-tap-auth-client'; export type PromptOneTapParams<TAuthClient extends OneTapAuthClient> = NonNullable<Parameters<TAuthClient["oneTap"]>[0]>; /** Mutation options factory for opening the Google One Tap prompt. */ export declare function promptOneTapOptions<TAuthClient extends OneTapAuthClient>(authClient: TAuthClient): MutationOptions<Awaited<ReturnType<(params: PromptOneTapParams<TAuthClient>) => Promise<void>>>, BetterFetchError, Parameters<(params: PromptOneTapParams<TAuthClient>) => Promise<void>>[0]>;