submitCustomRegistrationAction
Method which allows to submit the token for a custom registration with a custom identity provider. See Registration with custom IdP for more details.
submitCustomRegistrationAction(identityProviderId: string, token: string | null): Promise<void>;
| Property | Type | Description | 
|---|---|---|
| identityProviderId | string | The id of the identityProvider for which you want to submit the token | 
| token | string | The token to be submitted | 
Example
OneWelcomeSdk.submitCustomRegistrationAction(
  event.identityProviderId,
  token,
).then(() => {
  console.log('Token submit successfully');
}.catch((error) => {
  console.log('Error: ' + error.message)
})