From 763413e2a76681594e44c0b21ab1b8037367572a Mon Sep 17 00:00:00 2001 From: 7hokerz Date: Thu, 7 May 2026 19:55:08 +0900 Subject: [PATCH] fix(auth): add name field in DecodedIdToken interface --- etc/firebase-admin.auth.api.md | 1 + src/auth/token-verifier.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/etc/firebase-admin.auth.api.md b/etc/firebase-admin.auth.api.md index 8713b1bda7..9b5d90eb8e 100644 --- a/etc/firebase-admin.auth.api.md +++ b/etc/firebase-admin.auth.api.md @@ -697,6 +697,7 @@ export interface DecodedIdToken { }; iat: number; iss: string; + name?: string; phone_number?: string; picture?: string; sub: string; diff --git a/src/auth/token-verifier.ts b/src/auth/token-verifier.ts index 64da8ac516..7da8b32569 100644 --- a/src/auth/token-verifier.ts +++ b/src/auth/token-verifier.ts @@ -145,6 +145,11 @@ export interface DecodedIdToken { */ iss: string; + /** + * The display name of the user to whom the ID token belongs, if available. + */ + name?: string; + /** * The phone number of the user to whom the ID token belongs, if available. */