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 | Error code 10003 |
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 | Error code 10004 |
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 | Error code 10009 |
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 | Error code 10006 |
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 | Error code 10000 |
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 | Error code 10001 |
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 | Error code 10005 |
EnvironmentMismatch
There is a mismatch between the requested environment and the one configured.
Declaration
public static readonly int EnvironmentMismatch
Field Value
Type | Description |
---|---|
int | Error code 10010 |
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 | Error code 10002 |
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 | Error code 10008 |
InvalidSessionToken
The error returned when a session token is invalid
Declaration
public static readonly int InvalidSessionToken
Field Value
Type | Description |
---|---|
int | Error code 10007 |
MinValue
The minimal value of an Authentication error code. Any error code thrown from Authentication SDK less than it is from Unity.Services.Core.CommonErrorCodes.
Declaration
public static readonly int MinValue
Field Value
Type | Description |
---|---|
int | Error code 10000 |