UNPKG

infinity-forge

Version:
17 lines (16 loc) 878 B
import type { CredentialResponse, IdConfiguration, MomentListener } from '../types/index.js'; interface UseGoogleOneTapLoginOptions { onSuccess: (credentialResponse: CredentialResponse) => void; onError?: () => void; promptMomentNotification?: MomentListener; cancel_on_tap_outside?: boolean; prompt_parent_id?: string; state_cookie_domain?: string; hosted_domain?: string; disabled?: boolean; use_fedcm_for_prompt?: IdConfiguration['use_fedcm_for_prompt']; use_fedcm_for_button?: IdConfiguration['use_fedcm_for_button']; auto_select?: boolean; } export default function useGoogleOneTapLogin({ onSuccess, onError, promptMomentNotification, cancel_on_tap_outside, prompt_parent_id, state_cookie_domain, hosted_domain, use_fedcm_for_prompt, use_fedcm_for_button, disabled, auto_select, }: UseGoogleOneTapLoginOptions): void; export {};