1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-02 08:40:08 +01: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;
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);