-
Notifications
You must be signed in to change notification settings - Fork 407
Closed
Labels
Description
#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