File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -420,6 +420,17 @@ export namespace admin.auth {
420
420
*/
421
421
auth_time : number ;
422
422
423
+ /**
424
+ * The email of the user to whom the ID token belongs, if available.
425
+ */
426
+ email ?: string ;
427
+
428
+ /**
429
+ * Whether or not the email of the user to whom the ID token belongs is
430
+ * verified, provided the user has an email.
431
+ */
432
+ email_verified ?: boolean ;
433
+
423
434
/**
424
435
* The ID token's expiration time, in seconds since the Unix epoch. That is, the
425
436
* time at which this ID token expires and should no longer be considered valid.
@@ -494,6 +505,16 @@ export namespace admin.auth {
494
505
*/
495
506
iss : string ;
496
507
508
+ /**
509
+ * The phone number of the user to whom the ID token belongs, if available.
510
+ */
511
+ phone_number ?: string ;
512
+
513
+ /**
514
+ * The photo URL for the user to whom the ID token belongs, if available.
515
+ */
516
+ picture ?: string ;
517
+
497
518
/**
498
519
* The `uid` corresponding to the user who the ID token belonged to.
499
520
*
Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ export interface ListUsersResult {
64
64
export interface DecodedIdToken {
65
65
aud : string ;
66
66
auth_time : number ;
67
+ email ?: string ;
68
+ email_verified ?: boolean ;
67
69
exp : number ;
68
70
firebase : {
69
71
identities : {
@@ -76,6 +78,8 @@ export interface DecodedIdToken {
76
78
} ;
77
79
iat : number ;
78
80
iss : string ;
81
+ phone_number ?: string ;
82
+ picture ?: string ;
79
83
sub : string ;
80
84
tenant ?: string ;
81
85
[ key : string ] : any ;
You can’t perform that action at this time.
0 commit comments