Support more authenticator

This commit is contained in:
soruly 2022-06-18 13:40:11 +00:00
parent 48f7f451d8
commit d615bc70d0
No known key found for this signature in database
GPG Key ID: EF971E90F3D2521F
1 changed files with 4 additions and 4 deletions

View File

@ -41,14 +41,14 @@ app.locals.f2l =
new Fido2Lib({
timeout: 60000,
rpId: SERVER_NAME,
rpName: "ACME",
rpName: SERVER_NAME,
rpIcon: `https://${SERVER_NAME}/favicon.png`,
challengeSize: 128,
attestation: "direct",
cryptoParams: [-7],
cryptoParams: [-7, -35, -36, -257, -258, -259, -37, -38, -39, -8],
// authenticatorAttachment: "cross-platform",
// authenticatorRequireResidentKey: false,
authenticatorUserVerification: "preferred",
authenticatorRequireResidentKey: false,
authenticatorUserVerification: "discouraged",
});
app.use((req, res, next) => {