-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
atob fails on user ids with underscores #66
Comments
Hi @tomek-bt, Thanks for the issue report! Are you saying that if you try register with username |
Gotcha. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Encoder uses atob to encode a user id into a ByteArray. This fails on usernames with underscores like
cool_dude_123
(which could be a unique username used by an application).Uint8Array.from
should work here for encoding strings with underscores.This was taken from Duo Security's great writeup on Webauthn.
The text was updated successfully, but these errors were encountered: