MasterKale / SimpleWebAuthn

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
https://simplewebauthn.dev
MIT License
1.62k stars 137 forks source link

fix/553-require-rp-id-auth-options #555

Closed MasterKale closed 7 months ago

MasterKale commented 7 months ago

This PR makes the rpID argument a required one when calling generateAuthenticationOptions().

Fixes #553.

Breaking changes

Before:

  generateRegistrationOptions({ rpID: 'example.com', ... });
generateAuthenticationOptions();

After:

  generateRegistrationOptions({ rpID: 'example.com', ... });
generateAuthenticationOptions({ rpID: 'example.com' });