1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-10 21:33:17 +00:00

Provide information to set webauthn allow in html template (#455)

This commit is contained in:
Matt Gibson
2021-08-12 16:12:31 -04:00
committed by GitHub
parent c5f236c2e4
commit 0180d0cce5
2 changed files with 9 additions and 1 deletions

View File

@@ -44,6 +44,10 @@ export class TwoFactorComponent implements OnInit, OnDestroy {
onSuccessfulLogin: () => Promise<any>;
onSuccessfulLoginNavigate: () => Promise<any>;
get webAuthnAllow(): string {
return `publickey-credentials-get ${this.environmentService.getWebVaultUrl()}`;
}
protected loginRoute = 'login';
protected successRoute = 'vault';