- I have an identity service that generates a JWT token after login.
- The token is included in the
Authorizationheader asBearerto access another service. - Identity service endpoint:
/api/Auth/login - Admin service endpoint:
/api/Usermanagement
Despite ensuring the token is valid and not expired, I receive a 401 Unauthorized response.
What could be causing this issue

Sangeetha SPosted Jan 17, 2025, 12:28 PM
A 401 Unauthorized error when using a JWT token between two services can arise from several potential issues. Here are some common causes to check:
Bearer. Any extra spaces or incorrect formatting could lead to issues.expclaim) is indeed in the future.