@narangcia-oss/cryptic-auth-client-react
Version:
React hooks and components for cryptic-auth authentication with seamless OAuth2 integration
24 lines • 669 B
TypeScript
/**
* Utility functions for OAuth callback handling in React applications
*/
/**
* Check if the current URL is an OAuth callback
*/
export declare function isOAuthCallbackURL(url: string): boolean;
/**
* Check if the current URL has OAuth error parameters
*/
export declare function hasOAuthError(): boolean;
/**
* Get OAuth error details from URL
*/
export declare function getOAuthError(): {
error: string | null;
error_description: string | null;
error_uri: string | null;
};
/**
* Clean OAuth parameters from the current URL without triggering a page reload
*/
export declare function cleanOAuthURL(): void;
//# sourceMappingURL=oauth.d.ts.map