curl --request POST \
  --url http://localhost:8000/passcode/login/finalize \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "897481",
  "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"
}'
{
  "created_at": "2023-11-07T05:31:56Z",
  "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
  "ttl": 300
}

Body

application/json
code
string

The actual passcode from the email sent to the user during initialization, a string of 6 decimal digits

id
string

The ID of the passcode

Response

200 - application/json
created_at
string

Time of creation of the passcode

id
string

The ID of the passcode

ttl
integer

Lifespan of a passcode in seconds