Class IdToken
Represents the claims contained within an ID token obtained during sign-in.
Inherited Members
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
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 |