1.2.1 • Published 3 years ago
@rui13araujo/yawebauthn-server v1.2.1
yawebauthn-server
Yet Another WebAuthn Package for the Server
Install
npm i @rui13araujo/yawebauthn-serverUsage
Attestation (Register)
const yawebauthn = require('@rui13araujo/yawebauthn-server');
const attestationRequest = yawebauthn.attestation.request({
rpId: 'localhost',
rpName: 'Test',
username: user.username,
name: user.name,
userId: user.userId,
authenticators: user.authenticators
});
const attestationResponse = yawebauthn.attestation.response({
rpId: 'localhost',
challenge,
origin: 'http://localhost:3000',
webAuthnResponse: request.body
});Assertion (Login)
const yawebauthn = require('@rui13araujo/yawebauthn-server');
const assertionRequest = yawebauthn.assertion.request({
rpId: 'localhost',
authenticators: user.authenticators
});
const assertionResponse = yawebauthn.assertion.response({
rpId: 'localhost',
challenge: '<REQUEST CHALLENGE>',
origin: 'http://localhost:3000',
webAuthnResponse: request.body,
authenticator
});License
1.2.1
3 years ago
1.2.0
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.0-rc1
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
4 years ago
1.0.7-rc8
4 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.5-rc5
5 years ago
1.0.5-rc4
5 years ago
1.0.5-rc7
5 years ago
1.0.5-rc6
5 years ago
1.0.5-rc3
5 years ago
1.0.5-rc1
5 years ago
1.0.5-rc2
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago