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:
23
src/models/response/twoFactorU2fResponse.ts
Normal file
23
src/models/response/twoFactorU2fResponse.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user