Hello, I opened this issue on Github (https://github.com/auth0/auth0-auth-js/issues/74
), but I’ll try my luck here as well. All information is provided in that Github issue, but here’s a sum up:
When I use auth0-server-js
package with apps running on different domains (localhost with different port). The use case is that I have an express app on localhost:3000
and a React Vite app on localhost:5173
. From React app I click on login, I go to Auth0 login page and on the redirect back I get this error:
MissingTransactionError: The transaction is missing.
at ServerClient.completeInteractiveLogin (/Users/ronaldruzicka/Code/personal/auth0/node_modules/.pnpm/@auth0+auth0-server-js@1.1.0/node_modules/@auth0/auth0-server-js/src/server-client.ts:126:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async <anonymous> (/Users/ronaldruzicka/Code/personal/auth0/apps/auth/src/auth0.ts:77:46)
I think there is something wrong with the cookie in the StatelessStateStore
but not sure.
But when I use express-openid-connect
or auth0-fastify
I don’t have this problem.
Does anyone have this problem as well?