@narangcia-oss/cryptic-auth-client-react
Version:
React hooks and components for cryptic-auth authentication with seamless OAuth2 integration
14 lines • 456 B
TypeScript
/**
* Hook for handling OAuth authentication flows
*/
export declare function useOAuth(): {
/**
* Initiate OAuth login with a provider
* @param provider OAuth provider name (e.g., 'google', 'github', 'discord')
* @param scopes Optional array of OAuth scopes to request
*/
login: (provider: string, scopes?: string[]) => Promise<void>;
isLoading: boolean;
error: string | null;
};
//# sourceMappingURL=useOAuth.d.ts.map