Passcode
Initialize passcode login
Initialize a passcode login for the user identified by user_id
. Sends an email
containing the actual passcode to the user’s primary email address or to the address specified
through email_id
. Returns a representation of the passcode.
POST
https://{tenant_id}.hanko.io
/
passcode
/
login
/
initialize
Body
application/json
user_id
string
requiredThe ID of the user
email_id
string
The ID of the email address
Response
200 - application/json
id
string
The ID of the passcode
ttl
integer
Lifespan of a passcode in seconds
created_at
string
Time of creation of the passcode
Was this page helpful?