0
votes

I am trying to verify the signature of a token using a public key. Tried with any of these libraries (pyjwt, authlib, python-jose) to decode the JWT token, I always got this error when decoding:

enter image description here

raise ValueError("Could not deserialize key data.") ValueError: Could not deserialize key data.

The public key(PKCS#1) has already been created and fetched through API.

-----BEGIN RSA PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmuV8hGC2LySVZ3P7yoE0
we8Re8XctMdDin9IzbyZpE210aiH34oyBGP8sx5NpmGorxVE/eioQv41dY/Vzf2w
BuBYjBxZHIYStkOC/6Pc6UR3XRoVadCXFz6OLgLddxW8ZFtyUjFT+FKq5mZGotVN
MJHXlgCnBcHeFYouzxNa1sROaygXubBtyBi9KmSjf2NG3xdQ2flDFqcLTbVqFRKI
OeraKuXrisnOEZWqaRFHyHQOcQ8XKg5OK1sOzAZB5BAsjZFR4cPvmASEM0IJpOM9
jSUa2AxuodU2lpQrSmVajLFVjmSp8kMsYDrPF1V5EuNQdrj3n9WPJLLE8qQ4sAMX
rwIDAQAB
-----END RSA PUBLIC KEY-----

Could You please help me) Is there something wrong with the parsing or preprocessing public_key for decoding?