1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

suth service support for complete sso login (#136)

This commit is contained in:
Kyle Spearrin
2020-07-31 11:55:14 -04:00
committed by GitHub
parent fe167beda9
commit 261a20031f
2 changed files with 9 additions and 0 deletions

View File

@@ -142,6 +142,13 @@ export class AuthService implements AuthServiceAbstraction {
remember);
}
async logInSsoComplete(code: string, codeVerifier: string, redirectUrl: string,
twoFactorProvider: TwoFactorProviderType, twoFactorToken: string, remember?: boolean): Promise<AuthResult> {
this.selectedTwoFactorProviderType = null;
return await this.logInHelper(null, null, code, codeVerifier, redirectUrl, null,
twoFactorProvider, twoFactorToken, remember);
}
logOut(callback: Function) {
callback();
this.messagingService.send('loggedOut');