Allow my users to create their own access tokens for backend requests through cli #6654
Replies: 1 comment
-
Please see #3829 thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a main service, that allowes users through a frontend to create api tokens with expire date to use to their own free will (through cli or cicd), they can manage them, create and revoke them.
The issue is that other services I have doesnt have access to the db collection (access tokens), and I want to make sure they can verify the api token for the requests and also handle requests from the frontend as usual, while still maintaining requireAuth middleware of any other auth middleware per route.
What is the optimal way of achieving this? My stack is express, react and mongodb.
Beta Was this translation helpful? Give feedback.
All reactions