You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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.
All reactions