#Admin UI, logout doesn't actually logout
8 messages ยท Page 1 of 1 (latest)
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
Nvm I am dumb, I had csrf enabled
Glad your issue was resolved! :tada: If you want to help make payload better, please give us a :star: on GitHub and review us - It helps us a lot.
You do not have permission to mark this thread as solved. Only thread creators, contributors and payload team members can mark a thread as solved.
Why should logging out not work if you have csrf enabled? I have the same issue. Im not into that networking authentication stuff... Can you explain it?
In my case I ran my dev env on localhost (3000 for backend, 5173 for frontend), my auth cookies were named the same on the frontend as the backend, so when I wanted to logout on the port 3000 my 5173 still had the cookie, so Admin UI was always just taking the frontend cookie because I had whitelisted the frontend in my csrf config for payload. At least in my limited knowledge I think that's what happened.
Ohh okay. I use svelte aswell ๐
Thank you ๐