Skip to content

Migrate phone hash

POST
/api/auth/migrate-phone-hash
curl --request POST \
--url http://localhost:3001/api/auth/migrate-phone-hash \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{}'

Migrate an existing phone hash to the current hashing scheme. Called after server pepper rotation.

Migration request body

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

OK

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Bad Request

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Unauthorized

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Internal Server Error

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}