Skip to content

Commit 6f3bbd8

Browse files
sergei-maertensclaudep
authored andcommitted
👽 #701 -- user_id param to generate_registration_options must be bytes
This has changed in webauthn 2.0+ compared to 1.x
1 parent 77c5427 commit 6f3bbd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

two_factor/plugins/webauthn/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def make_credential_creation_options(user, rp, excluded_credential_ids, challeng
3737
creation_options = generate_registration_options(
3838
rp_id=rp.id,
3939
rp_name=rp.name,
40-
user_id=user.id.decode('utf-8'),
40+
user_id=user.id,
4141
user_name=user.name,
4242
user_display_name=user.display_name,
4343
challenge=challenge,

0 commit comments

Comments
 (0)