Request a passwordless sign-in code
POST
/_torii/auth/signin-code/start
const url = 'https://your-app.toriiauth.eu/_torii/auth/signin-code/start?_is_native=false';const options = { method: 'POST', headers: {'Content-Type': 'application/json'},};
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/signin-code/start?_is_native=false' \ --header 'Content-Type: application/json' \Emails a 6-digit sign-in code to the address, if it has an account. Always returns 202 — the response is identical for a known and an unknown address, so it cannot be used to enumerate users.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Origin
string
Host
string
Query Parameters
Section titled “Query Parameters”_is_native
boolean
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Payload for requesting a passwordless sign-in code by email
object
email
required
Responses
Section titled “Responses”Accepted. A code was sent if, and only if, the address has a sign-in-eligible account.
Media typeapplication/json
object
Examplegenerated
{}Email code sign-in is disabled for this environment, or the origin is not allowed.