mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-16 07:40:04 +02:00
Rename package import
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
|||||||
import type {
|
import type {
|
||||||
GenerateRegistrationOptionsOpts,
|
GenerateRegistrationOptionsOpts,
|
||||||
GenerateAuthenticationOptionsOpts,
|
GenerateAuthenticationOptionsOpts,
|
||||||
AuthenticatorTransportFuture
|
AuthenticatorTransport
|
||||||
} from "@simplewebauthn/server";
|
} from "@simplewebauthn/server";
|
||||||
import { isoBase64URL } from "@simplewebauthn/server/helpers";
|
import { isoBase64URL } from "@simplewebauthn/server/helpers";
|
||||||
import config from "@server/lib/config";
|
import config from "@server/lib/config";
|
||||||
@@ -221,7 +221,7 @@ export async function startRegistration(
|
|||||||
const excludeCredentials = existingSecurityKeys.map((key) => ({
|
const excludeCredentials = existingSecurityKeys.map((key) => ({
|
||||||
id: key.credentialId,
|
id: key.credentialId,
|
||||||
transports: key.transports
|
transports: key.transports
|
||||||
? (JSON.parse(key.transports) as AuthenticatorTransportFuture[])
|
? (JSON.parse(key.transports) as AuthenticatorTransport[])
|
||||||
: undefined
|
: undefined
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -571,7 +571,7 @@ export async function startAuthentication(
|
|||||||
transports: key.transports
|
transports: key.transports
|
||||||
? (JSON.parse(
|
? (JSON.parse(
|
||||||
key.transports
|
key.transports
|
||||||
) as AuthenticatorTransportFuture[])
|
) as AuthenticatorTransport[])
|
||||||
: undefined
|
: undefined
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
@@ -702,7 +702,7 @@ export async function verifyAuthentication(
|
|||||||
transports: securityKey.transports
|
transports: securityKey.transports
|
||||||
? (JSON.parse(
|
? (JSON.parse(
|
||||||
securityKey.transports
|
securityKey.transports
|
||||||
) as AuthenticatorTransportFuture[])
|
) as AuthenticatorTransport[])
|
||||||
: undefined
|
: undefined
|
||||||
},
|
},
|
||||||
requireUserVerification: false
|
requireUserVerification: false
|
||||||
|
|||||||
Reference in New Issue
Block a user