Method ProcessAuthenticationTokens
ProcessAuthenticationTokens(string, string)
Process the accessToken issued by the Unity Authentication Service. Effectivelly setting the access token for other UGS services to use and extracting the playerId. If the session token is set the SDK will also process it and refresh the token at the expected intervals.
Declaration
void ProcessAuthenticationTokens(string accessToken, string sessionToken = null)
Parameters
Type | Name | Description |
---|---|---|
string | accessToken | Unity Player Authentication accessToken used to access other UGS services |
string | sessionToken | sessionToken used to refresh the accessToken, if null the game server needs to refresh the accessToken on its own and call this method again |
Exceptions
Type | Condition |
---|---|
Authentication |
Thrown when the accessToken fails to parse. |
Request |
Thrown when the current authentication state is invalid for this operation. |