Skip to content

Commit 0c11355

Browse files
committed
fix auth-exp
1 parent 2e4ae9a commit 0c11355

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages-exp/auth-exp/src/mfa/mfa_error.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ export class MultiFactorError
4646
Object.setPrototypeOf(this, MultiFactorError.prototype);
4747
this.appName = auth.name;
4848
this.code = error.code;
49-
this.tenantid = auth.tenantId;
50-
this.serverResponse = error.serverResponse as IdTokenMfaResponse;
49+
this.tenantId = auth.tenantId ?? undefined;
50+
this.serverResponse = error.customData!
51+
.serverResponse as IdTokenMfaResponse;
5152
}
5253

5354
static _fromErrorAndCredential(

0 commit comments

Comments
 (0)