403 Forbidden
Phone sign-in is turned off
- Code
phone_sign_in_off- Status
403Forbidden- Type
https://errors.clavian.io/phone-sign-in-off
What it means
Signing in, creating an account or verifying a number with a phone and a one-time code is turned off on the Platform for now. No code was sent and nothing changed.
What to do
Say that phone sign-in is not available right now and offer email, a password or Google instead. Hide the phone options: GET /v1/meta (signIn.phone) says whether they are on, and at a kiosk GET /v1/station/sign-in/options.
Example
The API answers with status 403 and this body, as application/problem+json. A detail may be added, saying what went wrong this time; it is for people, and changes.
{
"type": "https://errors.clavian.io/phone-sign-in-off",
"title": "Phone sign-in is turned off",
"status": 403,
"code": "phone_sign_in_off",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
From the OpenAPI document, every endpoint that names it among its answers:
PATCH /v1/meChange your own profile: marketing, and your email address or phone numberPOST /v1/me/contact-verificationFinish changing your email address or phone number, with the code sent to itPOST /v1/station/sign-in/phoneSign a player in at a kiosk with a phone codePOST /v1/station/sign-in/phone/codeSend a sign-in code to a phone, from a kiosk