前往主控台

FirebaseAdmin.Auth.FirebaseToken

Represents a valid, decoded Firebase ID token.

Summary

It can be used to get the Uid and other claims available in the token.

Properties

Audience
string
Gets the audience claim that identifies the audience that the JWT is intended for.
Claims
IReadOnlyDictionary< string, object >
Gets all other claims present in the JWT as a readonly dictionary.
ExpirationTimeSeconds
long
Gets the expiration time claim that identifies the expiration time (in seconds) on or after which the token MUST NOT be accepted for processing.
IssuedAtTimeSeconds
long
Gets the issued at claim that identifies the time (in seconds) at which the JWT was issued.
Issuer
string
Gets the issuer claim that identifies the principal that issued the JWT.
Subject
string
Gets the subject claim identifying the principal that is the subject of the JWT.
Uid
string
Gets the User ID of the user to which this ID token belongs.

Properties

Audience

string Audience

Gets the audience claim that identifies the audience that the JWT is intended for.

Claims

IReadOnlyDictionary< string, object > Claims

Gets all other claims present in the JWT as a readonly dictionary.

This can be used to access custom claims of the token.

ExpirationTimeSeconds

long ExpirationTimeSeconds

Gets the expiration time claim that identifies the expiration time (in seconds) on or after which the token MUST NOT be accepted for processing.

IssuedAtTimeSeconds

long IssuedAtTimeSeconds

Gets the issued at claim that identifies the time (in seconds) at which the JWT was issued.

Issuer

string Issuer

Gets the issuer claim that identifies the principal that issued the JWT.

Subject

string Subject

Gets the subject claim identifying the principal that is the subject of the JWT.

Uid

string Uid

Gets the User ID of the user to which this ID token belongs.

This is same as Subject.