1
Answer

Getting a 401 Unauthorized when using a JWT token b/w two services

Ishika Tiwari

Ishika Tiwari

3w
342
1
  • I have an identity service that generates a JWT token after login.
  • The token is included in the Authorization header as Bearer <token> to 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

Answers (1)