Class AuthenticationErrorCodes
AuthenticationErrorCodes lists the error codes to expect from AuthenticationException
and failed events.
The error code range is: 10000 to 10999.
Namespace: Unity.Services.Authentication
Syntax
public static class AuthenticationErrorCodes : object
Fields
AccountAlreadyLinked
The error returned when a player tries to link a social account that is already linked with another player.
Declaration
public const int AccountAlreadyLinked = null
Field Value
Type | Description |
---|---|
Int32 |
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 const int AccountLinkLimitExceeded = null
Field Value
Type | Description |
---|---|
Int32 |
ClientInvalidProfile
The error returned when a player tries to switch profile but the profile name is invalid.
Declaration
public const int ClientInvalidProfile = null
Field Value
Type | Description |
---|---|
Int32 |
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 const int ClientInvalidUserState = null
Field Value
Type | Description |
---|---|
Int32 |
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 const int ClientNoActiveSession = null
Field Value
Type | Description |
---|---|
Int32 |
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 user info has not been loaded.
Declaration
public const int ClientUnlinkExternalIdNotFound = null
Field Value
Type | Description |
---|---|
Int32 |
InvalidParameters
The error returned when the parameter is missing or not in the right format.
Declaration
public const int InvalidParameters = null
Field Value
Type | Description |
---|---|
Int32 |
MinValue
The minimal value of an Authentication error code. Any error code thrown from Authentication SDK less than
it is from
Declaration
public const int MinValue = null
Field Value
Type | Description |
---|---|
Int32 |