Skip to content

Commit

Permalink
👽 user_id param to generate_registration_options must be bytes
Browse files Browse the repository at this point in the history
This has changed in webauthn 2.0+ compared to 1.x
  • Loading branch information
sergei-maertens committed Feb 3, 2024
1 parent 87564ed commit 710a511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion two_factor/plugins/webauthn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def make_credential_creation_options(user, rp, excluded_credential_ids, challeng
creation_options = generate_registration_options(
rp_id=rp.id,
rp_name=rp.name,
user_id=user.id.decode('utf-8'),
user_id=user.id,
user_name=user.name,
user_display_name=user.display_name,
challenge=challenge,
Expand Down

0 comments on commit 710a511

Please sign in to comment.