Skip to content

Authentication API

Description: Redirects to Google’s embedded Oauth login page (which redirects back to /user/validate/google after login).
Query Parameters:

NAMEDESCRIPTIONREQUIRED
csrfCSRF tokenyes

Description: Redirects to Facebook’s embedded Oauth login page (which redirects back to /user/validate/facebook after login).
Query Parameters:

NAMEDESCRIPTIONREQUIRED
csrfCSRF tokenyes

Description: Returns the user key of the Google account on the ApiUser object after successful login. On the web version of the game, the returned HTML sends an onLoginSuccess message to the client with the login user data and csrf token to origin. On the Windows client it sends a GET request (localhost:7163/?userKey={0}&csrf={1}) to login with user key through a gateway image in HTML.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
codeCode tokenyes
scopeScopeyes
authuser”0”yes
prompt”none”yes

Description: Returns the user key of the Facebook account on the ApiUser object after successful login. On the web version of the game, the returned HTML sends an onLoginSuccess message to the client with the login user data and csrf token to origin. On the Windows client it sends a GET request (localhost:7163/?userKey={0}&csrf={1}) to login with user key through a gateway image in HTML.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
codeCode tokenyes
stateState tokenyes

Description: Deprecated. Unknown.

Description: Creates a device account (or signs in) and returns a new user key on the ApiUser object. Device accounts are only usable from iOS and Android versions of the game.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
deviceIdString identifier (format [not enforced]: {platform}-{uuid})yes

Description: Takes a Discord Oauth Bearer Authorization Token and returns ApiUser object.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
authTokenTokenyes

Description: Deprecated.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
accessTokenTokenyes

Description: Deprecated.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
authCodeTokenyes

Description: Deprecated. Unknown.