Skip to content
Discussion options

You must be logged in to vote

If you use the Remix App Server (remix dev) there's no way to customize the code, you'll need to change to the Express setup, you can use npx rmx eject-ras to get the Express setup (see https://github.com/kiliman/rmx-cli).

Also, is the Axios instance a new one per request? Remember if you have a shared instance of Axios and you set the auth token there, if your server receives more than once request it may have race conditions where the token of the second user is used to fetch data as the first user.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by liegeandlief
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants