1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

missing await

This commit is contained in:
Kyle Spearrin
2019-04-18 09:47:00 -04:00
parent 30a1e27aa6
commit 7ec8d3a3b5

View File

@@ -252,7 +252,7 @@ export class AuthService {
const tokenResponse = response as IdentityTokenResponse; const tokenResponse = response as IdentityTokenResponse;
if (tokenResponse.twoFactorToken != null) { if (tokenResponse.twoFactorToken != null) {
this.tokenService.setTwoFactorToken(tokenResponse.twoFactorToken, email); await this.tokenService.setTwoFactorToken(tokenResponse.twoFactorToken, email);
} }
await this.tokenService.setTokens(tokenResponse.accessToken, tokenResponse.refreshToken); await this.tokenService.setTokens(tokenResponse.accessToken, tokenResponse.refreshToken);