Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 401 unauthorized when passing token on multiple services #79

Open
yieniggu opened this issue Aug 16, 2023 · 0 comments
Open

Getting 401 unauthorized when passing token on multiple services #79

yieniggu opened this issue Aug 16, 2023 · 0 comments

Comments

@yieniggu
Copy link

Currently I have 2 services:

  • One handles auth logic and generates the jwt using postgres
  • The other handles app data logic and is protected using the same token secret (currently uses mongo)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant