Finalise a signup/profile continuation
const url = 'https://your-app.toriiauth.eu/_torii/auth/signup/continue?_is_native=false';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"rZmH3pV1l3CkN3...","legalConsentAccepted":true,"codeVerifier":"example","firstName":"example","lastName":"example","emailCode":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://your-app.toriiauth.eu/_torii/auth/signup/continue?_is_native=false' \ --header 'Content-Type: application/json' \ --data '{ "token": "rZmH3pV1l3CkN3...", "legalConsentAccepted": true, "codeVerifier": "example", "firstName": "example", "lastName": "example", "emailCode": "example" }'Records the supplied legal-document acceptances and collected profile fields, creates the user (or completes the existing account’s sign-in for a profile continuation) atomically, and returns a session cookie + short-lived access token.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Query Parameters
Section titled “Query Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Finalises a signup/profile continuation (a deferred OAuth signup, or an existing account completing a missing required field).
object
Continuation token — from the OAuth callback redirect fragment, or the profile_required sign-in response body.
Example
rZmH3pV1l3CkN3...Whether the user ticked the legal-consent checkbox on the continuation screen. Must be true when the environment’s legal_settings.require_consent is true.
PKCE code verifier for native OAuth signups. Required when the continuation was started by a native (Capacitor) OAuth flow (the intent carries an S256 challenge); omitted for web.
User-typed first name. Required when the continuation state reports requiresName.
User-typed last name. Optional companion to firstName.
6-digit code emailed to the collected address. Required when the continuation state reports requiresEmail.
Responses
Section titled “Responses”OK
object
Examplegenerated
{}