token
endpoint
OAuth endpoints require you to take the authorization code provided by the traditional or game flow and exchange them for a token using your secret key. This is done with a POST request.
A request following this format:
POST https://galaxy.click/api/oauth/token
code=AUTH_CODE_HERE&client_id=CLIENT_ID_HERE&client_secret=CLIENT_SECRET_HERE&grant_type=authorization_code
Will return the response:
{
"access_token": "ACCESS_TOKEN_HERE",
"token_type": "Bearer",
"expires_in": 600
}
If an error occurred:
{
"message": "A descriptive error message of what went wrong"
}