post

/login/email/confirm

Completes authentication by the user email address and a confirmation code.

This call is used only with the Start auth by email call.

The workflow of using this call:

  1. The application opens an authentication form so the user can enter their email address.
  2. The user enters their email address.
  3. The application sends the Start auth by email request to the Xsolla Login server.
  4. The Xsolla Login server sends an email to the user 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 with the received ID.
  8. The user is considered as authorized.

Request Parameters

1 Query Parameter

Request Body

Schema
object
code
string

Confirmation code.

1 validation + required
email
string

User email address.

3 validations + required
operation_id
string

ID of the confirmation code.

1 validation + 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.