egregors / passkey

🔑 Go library for implementing WebAuthn services 🗝️
MIT License
14 stars 3 forks source link

Remove implied username == Webauthn Id #28

Closed mstarongithub closed 3 months ago

mstarongithub commented 3 months ago

Fixes #27 by adding a new function to the UserStore interface for receiving a user via a provided WebAuthn Id instead of a username. Additionally, the new function is now used in the finishRegistration and finishLogin handlers instead of first assuming the WebAuthn Id matches the username and then using that as a username.

mstarongithub commented 3 months ago

closed it, moving this into a branch on my fork, then opening again