Back to Firebase Js Sdk

ParsedToken interface

docs-devsite/auth.parsedtoken.md

12.12.11.8 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

ParsedToken interface

Interface representing a parsed ID token.

<b>Signature:</b>

typescript
export interface ParsedToken 

Properties

PropertyTypeDescription
auth_timestringTime at which authentication was performed.
expstringExpiration time of the token.
firebase{ 'sign_in_provider'?: string; 'sign_in_second_factor'?: string; 'identities'?: Record<string, string>; }Firebase specific claims, containing the provider(s) used to authenticate the user.
iatstringIssuance time of the token.
substringUID of the user.

ParsedToken.auth_time

Time at which authentication was performed.

<b>Signature:</b>

typescript
'auth_time'?: string;

ParsedToken.exp

Expiration time of the token.

<b>Signature:</b>

typescript
'exp'?: string;

ParsedToken.firebase

Firebase specific claims, containing the provider(s) used to authenticate the user.

<b>Signature:</b>

typescript
'firebase'?: {
        'sign_in_provider'?: string;
        'sign_in_second_factor'?: string;
        'identities'?: Record<string, string>;
    };

ParsedToken.iat

Issuance time of the token.

<b>Signature:</b>

typescript
'iat'?: string;

ParsedToken.sub

UID of the user.

<b>Signature:</b>

typescript
'sub'?: string;