docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AuthenticationResponse

    Response for an authentication request.

    Inheritance
    object
    AuthenticationResponse
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.PlayerAuthentication
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class AuthenticationResponse

    Constructors

    AuthenticationResponse(int, string, string, string, Player, string)

    Initializes a new instance of the AuthenticationResponse class.

    Declaration
    [Preserve]
    public AuthenticationResponse(int expiresIn = 0, string idToken = null, string sessionToken = null, string lastNotificationDate = null, Player user = null, string userId = null)
    Parameters
    Type Name Description
    int expiresIn

    The number of seconds in which the Id token expires. By default it's 3600. (required).

    string idToken

    The Id token of the authenticated player. (required).

    string sessionToken

    The session token of the authenticated player. This token can be used to sign-in the player again..

    string lastNotificationDate

    When the player received last notification in unix timestamp..

    Player user

    user (required).

    string userId

    The Id of the authenticated player. If a project is specified in the request, this field represents the Id of the project scoped player. (required).

    Properties

    ExpiresIn

    The number of seconds in which the Id token expires. By default it's 3600.

    Declaration
    [Preserve]
    public int ExpiresIn { get; set; }
    Property Value
    Type Description
    int

    The number of seconds in which the Id token expires. By default it's 3600.

    IdToken

    The Id token of the authenticated player.

    Declaration
    [Preserve]
    public string IdToken { get; set; }
    Property Value
    Type Description
    string

    The Id token of the authenticated player.

    LastNotificationDate

    When the player received last notification in unix timestamp.

    Declaration
    [Preserve]
    public string LastNotificationDate { get; set; }
    Property Value
    Type Description
    string

    When the player received last notification in unix timestamp.

    SessionToken

    The session token of the authenticated player. This token can be used to sign-in the player again.

    Declaration
    [Preserve]
    public string SessionToken { get; set; }
    Property Value
    Type Description
    string

    The session token of the authenticated player. This token can be used to sign-in the player again.

    User

    Gets or Sets User

    Declaration
    [Preserve]
    public Player User { get; set; }
    Property Value
    Type Description
    Player

    UserId

    The Id of the authenticated player. If a project is specified in the request, this field represents the Id of the project scoped player.

    Declaration
    [Preserve]
    public string UserId { get; set; }
    Property Value
    Type Description
    string

    The Id of the authenticated player. If a project is specified in the request, this field represents the Id of the project scoped player.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)