1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-16 00:03:38 +00:00

Add helper methods to authResult

This commit is contained in:
Thomas Rittson
2021-12-20 12:34:57 +10:00
parent 9c22bfd1e8
commit c2f21e03a9
3 changed files with 14 additions and 4 deletions

View File

@@ -155,7 +155,7 @@ describe("Cipher Service", () => {
function newTokenResponse() {
const tokenResponse = new IdentityTokenResponse({});
(tokenResponse as any).twoFactorProviders2 = false;
(tokenResponse as any).twoFactorProviders2 = null;
(tokenResponse as any).siteKey = undefined;
tokenResponse.resetMasterPassword = false;
tokenResponse.forcePasswordReset = false;