1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00
Files
browser/src/models/response/twoFactorU2fResponse.ts
2018-07-21 00:32:41 -04:00

24 lines
600 B
TypeScript

export class TwoFactorU2fResponse {
enabled: boolean;
challenge: ChallengeResponse;
constructor(response: any) {
this.enabled = response.Enabled;
this.challenge = response.Challenge == null ? null : new ChallengeResponse(response.Challenge);
}
}
export class ChallengeResponse {
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;
}
}