1.2.1 • Published 10 months ago
@rui13araujo/yawebauthn-server v1.2.1
yawebauthn-server
Yet Another WebAuthn Package for the Server
Install
npm i @rui13araujo/yawebauthn-server
Usage
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
10 months ago
1.2.0
10 months ago
1.1.1
10 months ago
1.1.0
11 months ago
1.1.0-rc1
10 months ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
2 years ago
1.0.7-rc8
2 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.5-rc5
3 years ago
1.0.5-rc4
3 years ago
1.0.5-rc7
3 years ago
1.0.5-rc6
3 years ago
1.0.5-rc3
3 years ago
1.0.5-rc1
3 years ago
1.0.5-rc2
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago