JWT verification fails

Hello,

I generated a JWT using RS256 algo using private key but during verification with public key it fails with the following error

The Token’s Signature resulted invalid when verified using the Algorithm: SHA256withRSA

What am i doing wrong?

Thanks in advance.

Nitin

1 Like

Never mind figured out the problem. While sending bearer token there was an extra space between Bearer and JWT. Removing the space fixed the problem.

1 Like

While sending bearer token there was an extra space between Bearer and JWT. Removing the space fixed the problem.