I use node.js and I need to auto-fetch the X-CSRF-TOKEN
I am also using noblox.js, but since it uses the https://api.roblox.com/v2/logout endpoint (?),
it will logout and refresh the .ROBLOSECURITY Cookie, which breaks the code and becomes very very very time consuming.
Or maybe we don’t need a X-CSRF-TOKEN anymore? Don’t think so, but X-CSRF-TOKEN is for confirming actions and stuff, because there is no token in the request, it shouldnt actually log you out.
You do not want to be sending your ROBLOSECURITY through roproxy. That means the owner of that website could very easily log your cookie and steal your account.
I do not understand your initial question though. You are logged out through the logout endpoint and then when you re-login it’s not setting the X-CSRF-TOKEN?
It also explains why he’s being logged out, and roproxy is a different IP address than the login. As long as he’s using an independent program, he should just be using the auth endpoint directly.
Pretty sure RoProxy returns an x-csrf-token in the headers of it’s response that you need to send BACK to it as a header in any further requests to make use of it. May be wrong though
Either way, try using Roblox APIs directly if you can, following what @benpinpop said