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/passcode/login/initialize
Request
- Base URLhttps://.hanko.io/admin
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"user_id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
"email_id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"
}Response
Successful passcode login initialization
Example response
{
"id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
"ttl": 300
}Changes
No recorded changes to this operation across all 1 revision of this API.