mirror of
https://github.com/bitwarden/browser
synced 2026-03-01 02:51:24 +00:00
Merge branch 'km/tsgo-compat-auth' into ts7
This commit is contained in:
@@ -17,7 +17,7 @@ export class AdminAuthRequestStorable {
|
||||
toJSON() {
|
||||
return {
|
||||
id: this.id,
|
||||
privateKey: Utils.fromBufferToByteString(this.privateKey),
|
||||
privateKey: Utils.fromBufferToByteString(this.privateKey.buffer as ArrayBuffer),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,8 @@ export class ChallengeResponse extends BaseResponse implements PublicKeyCredenti
|
||||
super(response);
|
||||
this.attestation = this.getResponseProperty("attestation");
|
||||
this.authenticatorSelection = this.getResponseProperty("authenticatorSelection");
|
||||
this.challenge = Utils.fromUrlB64ToArray(this.getResponseProperty("challenge"));
|
||||
this.challenge = Utils.fromUrlB64ToArray(this.getResponseProperty("challenge"))
|
||||
.buffer as ArrayBuffer;
|
||||
this.excludeCredentials = this.getResponseProperty("excludeCredentials").map((c: any) => {
|
||||
c.id = Utils.fromUrlB64ToArray(c.id).buffer;
|
||||
return c;
|
||||
|
||||
Reference in New Issue
Block a user