1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

add two factor apis

This commit is contained in:
Kyle Spearrin
2018-06-26 15:17:14 -04:00
parent 32a636e5a5
commit c3b6baf726
19 changed files with 268 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
export class TwoFactorU2fResponse {
enabled: boolean;
challenge: Challenge;
constructor(response: any) {
this.enabled = response.Enabled;
this.challenge = new Challenge(response.Challenge);
}
}
class Challenge {
userId: string;
appId: string;
challenge: string;
version: string;
constructor(response: any) {
this.userId = response.UserId;
this.appId = response.AppId;
this.challenge = response.Challenge;
this.version = response.Version;
}
}