docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TokenResponse

    Authentication token response.

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

    Constructors

    TokenResponse()

    Creates a default instance of TokenResponse.

    Declaration
    [Preserve]
    public TokenResponse()

    TokenResponse(string, string)

    Creates an instance of TokenResponse.

    Declaration
    [Preserve]
    public TokenResponse(string token, string error)
    Parameters
    Type Name Description
    string token

    JWT Token string associated to payload requests

    string error

    Internal multiplay error occurred retrieving the JWT

    Properties

    Error

    Internal multiplay error occurred retrieving the JWT

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

    Token

    JWT Token string associated to payload requests

    Declaration
    [Preserve]
    [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)]
    public string Token { get; set; }
    Property Value
    Type Description
    string
    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)