Class PlayerAccountsErrorCodes
PlayerAccountsErrorCodes lists the error codes from PlayerAccountsException
and failed events.
The error code range is : 10100 to 10199.
Namespace: Unity.Services.PlayerAccounts
Syntax
public static class PlayerAccountsErrorCodes
Fields
InvalidClient
InvalidClient Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). The authorization server MAY return an HTTP 401 (Unauthorized) status code to indicate which HTTP authentication schemes are supported. If the client attempted to authenticate via the "Authorization" request header field, the authorization server MUST respond with an HTTP 401 (Unauthorized) status code and include the "WWW-Authenticate" response header field matching the authentication scheme used by the client.
Declaration
public const int InvalidClient = 10103
Field Value
Type | Description |
---|---|
Int32 |
InvalidGrant
InvalidGrant The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
Declaration
public const int InvalidGrant = 10106
Field Value
Type | Description |
---|---|
Int32 |
InvalidRequest
InvalidRequest The request is missing a required parameter, includes an unsupported parameter value (other than grant type),repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.
Declaration
public const int InvalidRequest = 10105
Field Value
Type | Description |
---|---|
Int32 |
InvalidScope
InvalidScope The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.
Declaration
public const int InvalidScope = 10104
Field Value
Type | Description |
---|---|
Int32 |
InvalidState
A client error that is returned when the user is not in the right state. For example, calling SignOut when the user is already signed out will result in this error.
Declaration
public const int InvalidState = 10101
Field Value
Type | Description |
---|---|
Int32 |
MissingClientId
The client Id has not been configured in the editor
Declaration
public const int MissingClientId = 10102
Field Value
Type | Description |
---|---|
Int32 |
MissingRefreshToken
The refresh token is missing. This can occur when the client does not have OfflineAccessScope for requesting a refresh token.
Declaration
public const int MissingRefreshToken = 10107
Field Value
Type | Description |
---|---|
Int32 |
UnauthorizedClient
UnauthorizedClient The authenticated client is not authorized to use this authorization grant type.
Declaration
public const int UnauthorizedClient = 10108
Field Value
Type | Description |
---|---|
Int32 |
UnknownError
Unknown error
Declaration
public const int UnknownError = 10100
Field Value
Type | Description |
---|---|
Int32 |
UnsupportedGrantType
UnsupportedGrantType The authorization grant type is not supported by the authorization server.
Declaration
public const int UnsupportedGrantType = 10109
Field Value
Type | Description |
---|---|
Int32 |
UnsupportedResponseType
UnsupportedResponseType The authorization server does not support obtaining an authorization code using this method.
Declaration
public const int UnsupportedResponseType = 10110
Field Value
Type | Description |
---|---|
Int32 |