Skip to content

DecodedIDToken interface is missing fields #846

@hixus

Description

@hixus

#602 # [REQUIRED] Step 2: Describe your environment

  • Operating System version: OSX
  • Firebase SDK version: 8.10
  • Firebase Product: auth (auth, database, storage, etc)
  • Node.js version: v12.16.1
  • NPM version: 6.13.4

[REQUIRED] Step 3: Describe the problem

Typescript type of DecodedIdToken seem to miss email and email_verified which are part of at least my decoded id token.

{
"type": "user",
"iss": "https://securetoken.google.com/foobar",
"aud": "foobar",
"auth_time": 1586957764,
"user_id": "",
"sub": "",
"iat": 1586957764,
"exp": 1586961364,
"email": "[email protected]",
"email_verified": true,
"firebase": {
"identities": {
"email": [
"[email protected]"
]
},
"sign_in_provider": "password"
}
}

Steps to reproduce:

console.log the output of admin.auth().verifyIdToken function with valid id token

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions