コンテンツにスキップ

Complete TOTP reauthentication.

POST
/api/account/reauth/totp/complete
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/account/reauth/totp/complete \
--header 'Content-Type: application/json' \
--cookie authrim_session=<authrim_session> \
--data '{ "code": "example" }'

Verifies a TOTP code for the current Account Page session and refreshes the reauthentication window.

Media type application/json
object
code
required
string
/^(?:[0-9]{6}|[0-9]{8})$/
Example generated
{
"code": "example"
}

Account Page reauthentication completion response.

Media type application/json
object
ok
required
boolean
reauth
required
object
authenticated_at
required
integer
expires_at
required
integer
methods
required
Array<string>
Example generated
{
"ok": true,
"reauth": {
"authenticated_at": 1,
"expires_at": 1,
"methods": [
"example"
]
}
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}