diff --git a/lib/index.js b/lib/index.js index 74a8084..8de1722 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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]) => {