go-chi / jwtauth

JWT authentication middleware for Go HTTP services
MIT License
541 stars 91 forks source link

Getting 401 unauthorized when passing token on multiple services #79

Open yieniggu opened 1 year ago

yieniggu commented 1 year ago

Currently I have 2 services:

Somehow I end up getting error 401 unauthorized when passing the tokens from one service to another, why is this happening?

I'm just wondering why it behaves like this. Although the easiest way is to implement an api gateway to solve this, I'd like to know if theres something wrong with my approach.