The RSAAlgorithm
PyJWT algorithm method fails to import, but I do have the PyJWT
installed.
Error:
ImportError: cannot import name 'RSAAlgorithm' from 'jwt.algorithms'
I checked if the package is available by running this command:
poetry show|grep -i pyjwt
pyjwt 2.9.0 JSON Web Token implementation in...
I needed to additionally install the cryptography
Python package.
# Poetry
poetry add cryptography
# OR PIP
pip install cryptography
After this I was able to successfully import the method.