Skip to main content

Response Types

Response types for registration, authentication, sessions, social profiles, and game accounts.

Response types​

LoginResult​

Authentication result:

FieldTypeDescription
userUserUser data
sessionIdStringSession ID
sessionEndDateTimeSession expiration time
twoFactorChallengeTwoFactorChallengeOne-time two-factor verification request when no session has been created yet
messageStringMessage

TwoFactorChallenge​

FieldTypeDescription
tokenString!Opaque one-time request token
availableMethods[String!]!Available methods: totp, email, recovery_code
expiresAtDateTime!Expiration time
provisioningUriStringTOTP enrollment URI, returned only during setup
manualKeyStringManual TOTP key, returned only during setup

GameAccountResult​

Game account operation result:

FieldTypeDescription
accountGameAccount!Account data
messageStringMessage

GameAccount​

Game account (federated type):

FieldTypeServiceDescription
idID!User + GameAccount ID
loginString!User + GameLogin
serverIdInt!User + GameServer ID
hiddenBoolean!User + GameWhether account is hidden
statusGameAccountStatus!GameStatus (ACTIVE, HIDDEN, ...)
isBannedBoolean!GameWhether banned
characters[Character!]!Gamecharacters
createdAtDateTimeUser + GameCreation date

OperationResult​

Simple result:

FieldTypeDescription
messageString!Result message

UserResult​

User operation result:

FieldTypeDescription
userUser!Updated user data
messageStringMessage

Session​

User session:

FieldTypeDescription
idID!Session management identifier
isCurrentBoolean!Whether this is the current session
expiresAtDateTimeExpiration time

SocialProfile​

Linked social network:

FieldTypeDescription
idID!Record ID
providerString!Provider (vkontakte, google, facebook, etc.)
identityString!Social network identifier
nicknameStringNickname
createdAtDateTimeLink date

SocialProfileResult​

Social network linking result:

FieldTypeDescription
profileSocialProfile!Profile data
messageStringMessage

SocialAuthUrl​

Redirect information for an external authentication provider:

FieldTypeDescription
urlString!Provider redirect URL
providerString!Provider code configured by the project

ProjectSettings​

Project settings:

FieldTypeDescription
registrationEnabledBoolean!Registration enabled
emailConfirmationRequiredBoolean!Email confirmation required
pinShieldEnabledBoolean!PIN shield available
twoFactorAvailableBoolean!2FA available
socialLoginEnabledBoolean!Social network login enabled
gameAccountLoginEnabledBoolean!Game account login enabled

GameServer​

Game server:

FieldTypeDescription
idInt!Server ID
nameString!Name
healthStatusGameServerHealthStatus!Current connection state: UNKNOWN, AVAILABLE, or UNAVAILABLE

GameCredentials​

Game login credentials:

FieldTypeDescription
loginString!Login
passwordString!Password
serverIdInt!Server ID

Linked account relationship:

FieldTypeDescription
idID!Link ID
targetIdID!Other account ID
emailStringOther account email
statusAccountLinkStatus!PENDING, CONFIRMED, or REVOKED
createdAtDateTimeCreation date
confirmationExpiresAtDateTimeConfirmation code expiration