Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
dagnelies committed Nov 13, 2022
1 parent 1d2d4b3 commit d6f34d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webauthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ export async function register(username :string, challenge :string, options? :Re

async function getTransports(authType :AuthType) :Promise<AuthenticatorTransport[]> {
const local :AuthenticatorTransport[] = ['internal']

// 'hybrid' was added mid-2022 in the specs and currently not yet available in the official dom types
// @ts-ignore
const extern :AuthenticatorTransport[] = ['hybrid', 'usb', 'ble', 'nfc']

if(authType === "local")
Expand Down

0 comments on commit d6f34d0

Please sign in to comment.