{"version":3,"file":"IdentityProvider.mjs","sources":["../../../../../../../../../web/src/ui/react/b2c/IdentityProvider.tsx"],"sourcesContent":["import { AuthTokenParams, IDPConsentManifestGenerator } from '../../../types';\nimport { IDPContainer } from '../../b2c/IDPContainer';\nimport { createB2CComponent } from '../bindings/createB2CComponent';\nimport { StytchProps } from './StytchLogin';\n\nexport type IdentityProviderProps = Omit<StytchProps, 'config'> & {\n  /**\n   * Optional {@link IDPConsentManifestGenerator} to customize the consent screen.\n   */\n  getIDPConsentManifest?: IDPConsentManifestGenerator;\n  /**\n   * Optional {@link AuthTokenParams} to provide a trusted auth token to provide for attestation prior to running OAuth flow.\n   */\n  authTokenParams?: AuthTokenParams;\n};\n\n/**\n * The Stytch IDP component.\n * Parses OAuth Authorization params (client_id, scope, nonce, etc.) out of the page URL.\n * Requires the user to be logged in.\n * This component can only be used with a Stytch UI Client\n * passed into the StytchProvider.\n *\n * See the {@link https://stytch.com/docs/sdks online reference}\n *\n * @example\n * <IdentityProvider\n *   presentation={{\n *     theme: { primary: '#ff00f7' },\n *     options: {},\n *   }}\n *   callbacks={{\n *     onEvent: (event) => console.log(event)\n *   }}\n * />\n */\nexport const IdentityProvider = /* @__PURE__ */ createB2CComponent('IdentityProvider', IDPContainer);\n"],"names":["IdentityProvider","createB2CComponent","IDPContainer"],"mappings":";;;AAgBA;;;;;;;;;;;;;;;;;;;AAmBC,IACM,MAAMA,kBAAAA,mBAAmCC,kBAAAA,CAAmB,oBAAoBC,YAAAA;;;;"}