1.2.1 • Published 2 years ago

@rui13araujo/yawebauthn-server v1.2.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
2 years ago

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

MIT

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.0-rc1

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.7-rc8

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.5-rc5

4 years ago

1.0.5-rc4

4 years ago

1.0.5-rc7

4 years ago

1.0.5-rc6

4 years ago

1.0.5-rc3

4 years ago

1.0.5-rc1

4 years ago

1.0.5-rc2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago