infinity-forge
Version:
14 lines (13 loc) • 585 B
TypeScript
import { ReactNode } from 'react';
import { UseLoadGsiScriptOptions } from './hooks/useLoadGsiScript.js';
interface GoogleOAuthContextProps {
clientId: string;
scriptLoadedSuccessfully: boolean;
}
interface GoogleOAuthProviderProps extends UseLoadGsiScriptOptions {
clientId: string;
children: ReactNode;
}
export declare function GoogleOAuthProvider({ clientId, nonce, onScriptLoadSuccess, onScriptLoadError, children, }: GoogleOAuthProviderProps): import("react/jsx-runtime").JSX.Element;
export declare function useGoogleOAuth(): GoogleOAuthContextProps;
export {};