Skip to Content
Xeonr Developer Docs
API SpecificationAuthentication

Handle login

POST
/xmb.api.v1.AuthService/HandleLogin

Exchanges an OAuth authorization code for access and refresh tokens.

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

code?string

Authorization code returned by the IDP.

Length1 <= length <= 512
state?string

The state value issued by GetRedirectUrls.

Formatuuid
sessionCookie?boolean

When true the refresh token is set as an httpOnly session cookie and the response's refresh_token is empty. Browsers set it; a native app, which keeps its refresh token in the keychain, leaves it false.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.AuthService/HandleLogin" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "login": "map[accessToken:eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ1cm46eGVvbnI6YXV0aDp1aWQ6dXNlcjozIn0.c2lnbmF0dXJl expiresAt:2026-10-22T10:30:00Z refreshToken:rt_EXAMPLE-not-a-real-refresh-token]"
}