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: solution.dll
Syntax
public static class AuthenticationErrorCodes
Fields
Name | Description |
---|---|
AccountAlreadyLinked | The error returned when a player tries to link a social account that is already linked with another player. |
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. |
ClientInvalidProfile | The error returned when a player tries to switch profile but the profile name is invalid. |
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. |
ClientNoActiveSession | A client error that is returned when trying to sign-in with the session token while there is no cached session token. |
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. |
InvalidParameters | The error returned when the parameter is missing or not in the right format. |
InvalidProvider | The request was understood but the API refused to process it because the provider was invalid for the request. |
InvalidSessionToken | The error returned when a session token is invalid |
MinValue | The minimal value of an Authentication error code. Any error code thrown from Authentication SDK less than it is from CommonErrorCodes. |