docs.unity3d.com
    Show / Hide Table of Contents

    Class AuthenticationErrorCodes

    AuthenticationErrorCodes lists the error codes to expect from AuthenticationException and failed events. The error code range is: 10000 to 10999.

    Inheritance
    Object
    AuthenticationErrorCodes
    Namespace: Unity.Services.Authentication
    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
    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 static readonly int AccountLinkLimitExceeded
    Field Value
    Type Description
    Int32

    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
    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 static readonly int ClientInvalidUserState
    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 static readonly int ClientNoActiveSession
    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 player info has not been loaded.

    Declaration
    public static readonly int ClientUnlinkExternalIdNotFound
    Field Value
    Type Description
    Int32

    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
    Int32

    InvalidSessionToken

    The error returned when a session token is invalid

    Declaration
    public static readonly int InvalidSessionToken
    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 CommonErrorCodes.

    Declaration
    public static readonly int MinValue
    Field Value
    Type Description
    Int32
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023