UNPKG

@turnkey/react-wallet-kit

Version:

The easiest and most powerful way to integrate Turnkey's Embedded Wallets into your React applications.

55 lines (52 loc) 1.91 kB
import { defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.mjs'; import { OAuthProviders } from '@turnkey/sdk-types'; var DISCORD_AUTH_URL = "https://discord.com/oauth2/authorize"; var X_AUTH_URL = "https://x.com/i/oauth2/authorize"; var GOOGLE_AUTH_URL = "https://accounts.google.com/o/oauth2/v2/auth"; var APPLE_AUTH_URL = "https://account.apple.com/auth/authorize"; var FACEBOOK_AUTH_URL = "https://www.facebook.com/v11.0/dialog/oauth"; var FACEBOOK_GRAPH_URL = "https://graph.facebook.com/v11.0/oauth/access_token"; var popupWidth = 500; var popupHeight = 600; /** * Pre-configured OAuth provider settings */ var OAUTH_PROVIDER_CONFIGS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, OAuthProviders.GOOGLE, { provider: OAuthProviders.GOOGLE, authUrl: GOOGLE_AUTH_URL, scopes: "openid email profile", usesPKCE: false, responseType: "id_token", nonceInParams: true }), OAuthProviders.APPLE, { provider: OAuthProviders.APPLE, authUrl: APPLE_AUTH_URL, scopes: "", usesPKCE: false, responseType: "code id_token", responseMode: "fragment", nonceInParams: true }), OAuthProviders.FACEBOOK, { provider: OAuthProviders.FACEBOOK, authUrl: FACEBOOK_AUTH_URL, scopes: "openid", usesPKCE: true, responseType: "code", nonceInParams: true }), OAuthProviders.DISCORD, { provider: OAuthProviders.DISCORD, authUrl: DISCORD_AUTH_URL, scopes: "identify email", usesPKCE: true, responseType: "code", nonceInParams: false }), OAuthProviders.X, { provider: OAuthProviders.X, authUrl: X_AUTH_URL, scopes: "tweet.read users.read", usesPKCE: true, responseType: "code", nonceInParams: false }); export { APPLE_AUTH_URL, DISCORD_AUTH_URL, FACEBOOK_AUTH_URL, FACEBOOK_GRAPH_URL, GOOGLE_AUTH_URL, OAUTH_PROVIDER_CONFIGS, X_AUTH_URL, popupHeight, popupWidth }; //# sourceMappingURL=config.mjs.map