Interface representing ID token result obtained fromfirebase.User.getIdTokenResult. It contains the ID token JWT stringand other helper properties for getting different data associated with thetoken as well as all the decoded payload claims.

Note that these claims are not to be trusted as they are parsed client side.Only server side verification can guarantee the integrity of the tokenclaims.

Index

Properties

authTime

authTime:string

The authentication time formatted as a UTC string. This is the time theuser authenticated (signed in) and not the time the token was refreshed.

claims

claims:{}

The entire payload claims of the ID token including the standard reservedclaims as well as the custom claims.

Type declaration

  • [key:string]:any

expirationTime

expirationTime:string

The ID token expiration time formatted as a UTC string.

issuedAtTime

issuedAtTime:string

The ID token issued at time formatted as a UTC string.

signInProvider

signInProvider:string |null

The sign-in provider through which the ID token was obtained (anonymous,custom, phone, password, etc). Note, this does not map to provider IDs.

signInSecondFactor

signInSecondFactor:string |null

The type of second factor associated with this session, provided the userwas multi-factor authenticated (eg. phone, etc).

token

token:string

The Firebase Auth ID token JWT string.

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-07-27 UTC.