docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IdToken

    Represents the claims contained within an ID token obtained during sign-in.

    Inheritance
    object
    BaseJwt
    IdToken
    Inherited Members
    BaseJwt.ExpirationTimeUnix
    BaseJwt.IssuedAtTimeUnix
    BaseJwt.NotBeforeTimeUnix
    BaseJwt.ExpirationTime
    BaseJwt.IssuedAtTime
    BaseJwt.NotBeforeTime
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Authentication.PlayerAccounts
    Assembly: Unity.Services.Authentication.PlayerAccounts.dll
    Syntax
    public class IdToken : BaseJwt

    Fields

    Audience

    Gets the audience of the ID token.

    Declaration
    [JsonProperty("aud")]
    public string[] Audience
    Field Value
    Type Description
    string[]

    Issuer

    Gets the issuer of the ID token.

    Declaration
    [JsonProperty("iss")]
    public string Issuer
    Field Value
    Type Description
    string

    JwtId

    Gets the JWT ID of the ID token.

    Declaration
    [JsonProperty("jti")]
    public string JwtId
    Field Value
    Type Description
    string

    Subject

    Gets the subject identifier of the user.

    Declaration
    [JsonProperty("sub")]
    public string Subject
    Field Value
    Type Description
    string

    Properties

    Email

    Gets the email of the user.

    Declaration
    [JsonProperty("email")]
    public string Email { get; set; }
    Property Value
    Type Description
    string

    EmailVerified

    Indicates whether the user's email address is verified.

    Declaration
    [JsonProperty("email_verified")]
    public bool EmailVerified { get; set; }
    Property Value
    Type Description
    bool

    IsPrivateEmail

    Indicates whether the user's email address is private.

    Declaration
    [JsonProperty("is_private_email")]
    public bool IsPrivateEmail { get; set; }
    Property Value
    Type Description
    bool

    Nonce

    Gets the nonce value used during the authentication request.

    Declaration
    [JsonProperty("nonce")]
    public string Nonce { get; set; }
    Property Value
    Type Description
    string
    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)