mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 00:36:38 +00:00
cleanup
This commit is contained in:
@@ -207,7 +207,6 @@ export async function startRegistration(
|
|||||||
|
|
||||||
const excludeCredentials = existingSecurityKeys.map(key => ({
|
const excludeCredentials = existingSecurityKeys.map(key => ({
|
||||||
id: key.credentialId,
|
id: key.credentialId,
|
||||||
type: "public-key" as const,
|
|
||||||
transports: key.transports ? JSON.parse(key.transports) as AuthenticatorTransportFuture[] : undefined
|
transports: key.transports ? JSON.parse(key.transports) as AuthenticatorTransportFuture[] : undefined
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -536,7 +535,6 @@ export async function startAuthentication(
|
|||||||
|
|
||||||
allowCredentials = userSecurityKeys.map(key => ({
|
allowCredentials = userSecurityKeys.map(key => ({
|
||||||
id: key.credentialId,
|
id: key.credentialId,
|
||||||
type: 'public-key' as const,
|
|
||||||
transports: key.transports ? JSON.parse(key.transports) as AuthenticatorTransportFuture[] : undefined
|
transports: key.transports ? JSON.parse(key.transports) as AuthenticatorTransportFuture[] : undefined
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user