mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
24 lines
600 B
TypeScript
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;
|
|
}
|
|
}
|