Replies: 1 comment 3 replies
-
You could e.g. use Generally though, you should try to keep your authentication in a cookie (set and read only by the server, never by the client), and those cookies could just be set by the server scoped for the path of either the admin or the user api endpoints. |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hello,
Currently I'm working on a project that combines two admins provided to admins and consumers.
I store the authTokens of both sides in the redux store.
A question arose while setting the header using prepareHeader in rtk query using the two stored tokens.
Depending on the purpose of the api (manager, consumer), I want to set the appropriate header.
However, I'm worried about what pattern to proceed with this.
If you have a way, please share.
Beta Was this translation helpful? Give feedback.
All reactions