1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-19 17:53:48 +00:00
Files
jslib/src/models/response/twoFactorU2fResponse.ts
2018-06-26 15:17:14 -04:00

24 lines
533 B
TypeScript

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;
}
}