mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
support for new Challenge token for U2F
This commit is contained in:
@@ -97,6 +97,10 @@ export class TwoFactorComponent implements OnInit, OnDestroy {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.Challenge != null) {
|
||||||
|
this.u2f.init(JSON.parse(params.Challenge));
|
||||||
|
} else {
|
||||||
|
// TODO: Deprecated. Remove in future version.
|
||||||
const challenges = JSON.parse(params.Challenges);
|
const challenges = JSON.parse(params.Challenges);
|
||||||
if (challenges != null && challenges.length > 0) {
|
if (challenges != null && challenges.length > 0) {
|
||||||
this.u2f.init({
|
this.u2f.init({
|
||||||
@@ -110,6 +114,7 @@ export class TwoFactorComponent implements OnInit, OnDestroy {
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case TwoFactorProviderType.Duo:
|
case TwoFactorProviderType.Duo:
|
||||||
case TwoFactorProviderType.OrganizationDuo:
|
case TwoFactorProviderType.OrganizationDuo:
|
||||||
|
|||||||
Reference in New Issue
Block a user