Skip to content

Commit b3312ac

Browse files
authored
fix(auth): Address several auth typing inconsistencies (#993)
1 parent 7a5ba24 commit b3312ac

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/auth.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ export namespace admin.auth {
820820
* When not provided in an `admin.auth.TenantAwareAuth` context, the user is uploaded
821821
* to the tenant corresponding to that `TenantAwareAuth` instance's tenant ID.
822822
*/
823-
tenantId?: string | null;
823+
tenantId?: string;
824824

825825
/**
826826
* The user's multi-factor related properties.

src/auth/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ export interface DecodedIdToken {
9999
sign_in_provider: string;
100100
sign_in_second_factor?: string;
101101
second_factor_identifier?: string;
102+
tenant?: string;
102103
[key: string]: any;
103104
};
104105
iat: number;
105106
iss: string;
106107
phone_number?: string;
107108
picture?: string;
108109
sub: string;
109-
tenant?: string;
110110
uid: string;
111111
[key: string]: any;
112112
}

src/auth/user-record.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ export enum MultiFactorId {
148148
*/
149149
export abstract class MultiFactorInfo {
150150
public readonly uid: string;
151-
public readonly displayName: string;
151+
public readonly displayName?: string;
152152
public readonly factorId: MultiFactorId;
153-
public readonly enrollmentTime: string;
153+
public readonly enrollmentTime?: string;
154154

155155
/**
156156
* Initializes the MultiFactorInfo associated subclass using the server side.

0 commit comments

Comments
 (0)