post

/login/phone/confirm

Completes authentication by the user phone number and a confirmation code.

This call is used only with the Start auth by phone number call.

The workflow of using this call:

  1. The application opens an authentication form so the user can enter their phone number.
  2. The user enters their phone number.
  3. The application sends the Start auth by phone number request to the Xsolla Login server.
  4. The Xsolla Login server sends a confirmation code to the phone number and returns the ID of the confirmation code.
  5. The application shows a field so the user can fill in the confirmation code.
  6. The user enters the received confirmation code.
  7. The application sends this request to the Xsolla Login server.
  8. The user is considered as authorized.

Request Parameters

1 Query Parameter

Request Body

Schema
object
code
string

Confirmation code.

1 validation + required
operation_id
string

ID of the confirmation code.

1 validation + required
phone_number
string

User phone number.

2 validations + required

Responses

OK

Schema
object
login_url
string

URL with the token and remember_me parameters to redirect the user to after successful authentication. The token parameter has the user JWT format.

required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
No $$.env variables are being used in this request.