FirebaseAdmin. Auth. FirebaseToken
Represents a valid, decoded Firebase ID token.
Summary
It can be used to get theUid and other claims available in the token.
Properties | |
|---|---|
Audience | stringGets 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 | longGets the expiration time claim that identifies the expiration time (in seconds) on or after which the token MUST NOT be accepted for processing. |
IssuedAtTimeSeconds | longGets the issued at claim that identifies the time (in seconds) at which the JWT was issued. |
Issuer | stringGets the issuer claim that identifies the principal that issued the JWT. |
Subject | stringGets the subject claim identifying the principal that is the subject of the JWT. |
TenantId | stringGets the ID of the tenant the user belongs to, if available. |
Uid | stringGets 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.
TenantId
string TenantId
Gets the ID of the tenant the user belongs to, if available.
Returns null if the ID token is not scoped to a tenant.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-03-24 UTC.