Skip to content

Commit

Permalink
Update IdentifierView.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xifengfang-okta committed Aug 19, 2024
1 parent dc008b9 commit 7f89e17
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/v2/view-builder/views/IdentifierView.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,18 +312,19 @@ export default BaseView.extend({
},

getCredentialsAndSave() {
// AbortController is not supported in IE11
if (typeof AbortController !== 'undefined') {
this.webauthnAbortController = new AbortController();
}

const allowCredentials = [];
const challengeData = this.options.appState.get('webauthnChallenge')?.challengeData;
if (!challengeData) return;
const options = _.extend({}, challengeData, {
allowCredentials,
challenge: CryptoUtil.strToBin(challengeData.challenge),
});

// AbortController is not supported in IE11
if (typeof AbortController !== 'undefined') {
this.webauthnAbortController = new AbortController();
}

// navigator.credentials() is not supported in IE11
// eslint-disable-next-line compat/compat
navigator.credentials.get({
Expand Down

0 comments on commit 7f89e17

Please sign in to comment.