@turnkey/react-wallet-kit
Version:
The easiest and most powerful way to integrate Turnkey's Embedded Wallets into your React applications.
34 lines • 1.57 kB
TypeScript
import { OAuthProviders } from "@turnkey/sdk-types";
export declare const DISCORD_AUTH_URL = "https://discord.com/oauth2/authorize";
export declare const X_AUTH_URL = "https://x.com/i/oauth2/authorize";
export declare const GOOGLE_AUTH_URL = "https://accounts.google.com/o/oauth2/v2/auth";
export declare const APPLE_AUTH_URL = "https://account.apple.com/auth/authorize";
export declare const APPLE_AUTH_SCRIPT_URL = "https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js";
export declare const FACEBOOK_AUTH_URL = "https://www.facebook.com/v11.0/dialog/oauth";
export declare const FACEBOOK_GRAPH_URL = "https://graph.facebook.com/v11.0/oauth/access_token";
export declare const popupWidth = 500;
export declare const popupHeight = 600;
/**
* OAuth provider configuration for unified OAuth flow handling
*/
export interface OAuthProviderConfig {
/** The provider identifier */
provider: OAuthProviders;
/** The base OAuth authorization URL */
authUrl: string;
/** OAuth scopes to request */
scopes: string;
/** Whether this provider uses PKCE */
usesPKCE: boolean;
/** Response type for the OAuth request */
responseType: string;
/** Optional response mode (e.g., 'fragment' for Apple) */
responseMode?: string;
/** Whether to include nonce in the URL params (vs state) */
nonceInParams?: boolean;
}
/**
* Pre-configured OAuth provider settings
*/
export declare const OAUTH_PROVIDER_CONFIGS: Record<OAuthProviders, OAuthProviderConfig>;
//# sourceMappingURL=config.d.ts.map