cedarcode/webauthn-ruby

Help users generate user ids per the W3C Rec

grzuy opened this issue · 3 comments

grzuy commented

As a gem user
I want to the gem to help me generate the user ids
So that my life is easier and I'm less prone to not follow the W3C Rec

https://www.w3.org/TR/webauthn-2/#sctn-user-handle-privacy

grzuy commented

We can probably go with WebAuthn.generate_user_id that simply generates an encoded 64-length random byte word.

Interesting recommendation from the standard - 64 bytes seems like overkill when a UUID (which we already had and reused) is 16 bytes 😅

grzuy commented

🤷‍♂️