post

/oauth2/cross/{platformProviderName}/login

Calls to exchange the provider JWT by the client JWT.

Provider project – a common project, in which your users authenticate, and the received JWT is then used for cross-authentication in other projects (i.e. games).

Client project — a project, in which your users authenticate automatically, as a result of cross-authentication. They do not need to enter their data.

Request Parameters

1 Path Parameter
2 Query Parameters

Request Body

Form data (application/x-www-form-urlencoded)
access_token
string

JWT (access_token) received after authentication in the provider project.

required

Responses

OK

1 Example
Schema
object
access_token
string

User JWT for the client project.

required
expire_in
integer

access_token expiration period in seconds. You can configure it in Publisher Account > your Login project > General settings > JWT expiration.

refresh_token
string

Refresh token for updating the access_token.

token_type
string

JWT type. Can be ‘bearer’.

required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
1 path param not set
platformProviderName
$$.env
No $$.env variables are being used in this request.