docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SignInWithSessionTokenRequest

    the request body for session token authentication

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

    Constructors

    SignInWithSessionTokenRequest(string, string)

    Initializes a new instance of the SignInWithSessionTokenRequest class.

    Declaration
    [Preserve]
    public SignInWithSessionTokenRequest(string nonce = null, string sessionToken = null)
    Parameters
    Type Name Description
    string nonce

    String value used to associate a Client session with an Id Token, and to mitigate replay attacks. If this field is provided, the nonce claim in response Id token has a matching value..

    string sessionToken

    The session token of the player. (required).

    Properties

    Nonce

    String value used to associate a Client session with an Id Token, and to mitigate replay attacks. If this field is provided, the nonce claim in response Id token has a matching value.

    Declaration
    [DataMember(Name = "nonce", EmitDefaultValue = false)]
    [Preserve]
    public string Nonce { get; set; }
    Property Value
    Type Description
    string

    String value used to associate a Client session with an Id Token, and to mitigate replay attacks. If this field is provided, the nonce claim in response Id token has a matching value.

    SessionToken

    The session token of the player.

    Declaration
    [DataMember(Name = "sessionToken", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public string SessionToken { get; set; }
    Property Value
    Type Description
    string

    The session token of the player.

    In This Article
    Back to top
    Copyright © 2025 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)