I am using pyjwt library for decoding the JWT token. I got this error when I am decoding. The code was given in the documantation.
import jwt encoded_jwt=\'
If you get this error double check your public key is exactly right, new lines are important.
key = '''-----BEGIN PUBLIC KEY----- -----END PUBLIC KEY-----'''