I've identified a specific code discrepancy in the webauthn.py file of the Flask-Security package between the version available on GitHub and the one published on PyPI. This discrepancy leads to compatibility issues with WebAuthn 2.0.
In the version installed via PyPI, the code segment within webauthn.py looks as follows:
Hello,
I've identified a specific code discrepancy in the webauthn.py file of the Flask-Security package between the version available on GitHub and the one published on PyPI. This discrepancy leads to compatibility issues with WebAuthn 2.0.
In the version installed via PyPI, the code segment within webauthn.py looks as follows:
However, to ensure compatibility with WebAuthn 2.0, the user_id needs to be encoded, as shown below:
Without this modification, the following error is thrown when interacting with WebAuthn 2.0
The issue can be fixed if you synchronize the Github code with pypi.