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

Solved Solved
1 2 3,204
1 ACCEPTED SOLUTION

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

View solution in original post

2 REPLIES 2

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.

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