Skip to content

Commit

Permalink
feat: set 'npm-use-webauthn' header depending on option (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
jumoel committed May 25, 2022
1 parent d0c2dec commit 6bdd233
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Expand Up @@ -59,6 +59,9 @@ const webAuth = (opener, opts, body) => {
...opts,
method: 'POST',
body,
headers: {
'npm-use-webauthn': opts.authType === 'webauthn',
},
}).then(res => {
return Promise.all([res, res.json()])
}).then(([res, content]) => {
Expand Down

0 comments on commit 6bdd233

Please sign in to comment.