window.ownid.headless) to start and complete the identity document challenge from your frontend. The access token from a prior email or phone verification step is required to scope the challenge to the authenticated user.
The flow is:
- Start the challenge using the access token from the preceding email or phone verification step.
- Redirect the user to the hosted challenge URL returned by OwnID.
- After the user completes verification, OwnID redirects them back to your finish URL with a
ownid_iddoc_challengeIdquery parameter. - Call
continue()on your finish page to resume the challenge and wait for the status to settle. - Use the returned access token to log the user in and establish a session.