Collect signup email
POST
/_torii/auth/signup/continue/email
const url = 'https://your-app.toriiauth.eu/_torii/auth/signup/continue/email';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example","email":"ada@example.com"}'};
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/email \ --header 'Content-Type: application/json' \ --data '{ "token": "example", "email": "ada@example.com" }'Sets the email address on a signup/profile continuation whose account is missing a required email, and emails a verification code to it.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Host
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Sets the email address on a signup/profile continuation and emails a verification code.
object
token
required
Continuation token — from the OAuth callback redirect fragment, or the profile_required sign-in response body.
string
email
required
Email address the user wants on the account.
string
Example
ada@example.comResponses
Section titled “Responses”OK
Media typeapplication/json
Confirms a 6-digit verification code was emailed to the collected address.
object
emailCodeSent
required
boolean
Examplegenerated
{ "emailCodeSent": true}