Class AuthenticationErrorCodes
AuthenticationErrorCodes lists the error codes to expect from AuthenticationException
and failed events.
The error code range is: 10000 to 10999.
Inherited Members
Namespace: Unity.Services.Authentication
Assembly: Unity.Services.Authentication.dll
Syntax
public static class AuthenticationErrorCodes
Fields
AccountAlreadyLinked
The error returned when a player tries to link a social account that is already linked with another player.
Declaration
public static readonly int AccountAlreadyLinked
Field Value
Type | Description |
---|---|
int |
AccountLinkLimitExceeded
The error returned when a player tries to link a social account but this player has already reached the limit of links for that account type. Social accounts linking are typically limited to one link per type per player.
Declaration
public static readonly int AccountLinkLimitExceeded
Field Value
Type | Description |
---|---|
int |
BannedUser
The request was understood but the user has been banned from logging in.
Declaration
public static readonly int BannedUser
Field Value
Type | Description |
---|---|
int |
ClientInvalidProfile
The error returned when a player tries to switch profile but the profile name is invalid.
Declaration
public static readonly int ClientInvalidProfile
Field Value
Type | Description |
---|---|
int |
ClientInvalidUserState
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 static readonly int ClientInvalidUserState
Field Value
Type | Description |
---|---|
int |
ClientNoActiveSession
A client error that is returned when trying to sign-in with the session token while there is no cached session token.
Declaration
public static readonly int ClientNoActiveSession
Field Value
Type | Description |
---|---|
int |
ClientUnlinkExternalIdNotFound
The error returned when a player tries to unlink a social account but no external id for that provider is found for the account. This could be because the player info has not been loaded.
Declaration
public static readonly int ClientUnlinkExternalIdNotFound
Field Value
Type | Description |
---|---|
int |
EnvironmentMismatch
There is a mismatch between the requested environment and the one configured.
Declaration
public static readonly int EnvironmentMismatch
Field Value
Type | Description |
---|---|
int |
InvalidParameters
The error returned when the parameter is missing or not in the right format.
Declaration
public static readonly int InvalidParameters
Field Value
Type | Description |
---|---|
int |
InvalidProvider
The request was understood but the API refused to process it because the provider was invalid for the request.
Declaration
public static readonly int InvalidProvider
Field Value
Type | Description |
---|---|
int |
InvalidSessionToken
The error returned when a session token is invalid
Declaration
public static readonly int InvalidSessionToken
Field Value
Type | Description |
---|---|
int |
MinValue
The minimal value of an Authentication error code. Any error code thrown from Authentication SDK less than
it is from Unity.
Declaration
public static readonly int MinValue
Field Value
Type | Description |
---|---|
int |