Hello, I am trying to get an authorization token for Roblox, but it doesn't seem to work. It keeps giving me the "Token Validation Failed" error. I am using Python and this is my script:

import requests

ROBLOSECURITY = "_|WARNING:-DO-NOT-SHARE-THIS.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items.|_OMEGALUL"

cookies = {'.ROBLOSECURITY': ROBLOSECURITY}

session = requests.Session() session.cookies[".ROBLOSECURITY"] = ROBLOSECURITY req = session.post(url="https://auth.roblox.com/v2/logout")

session.headers["X-CSRF-TOKEN"] = req.headers["X-CSRF-Token"]

req2 = session.post(url="https://auth.roblox.com/v1/authentication-ticket")

print(req.content)

What am I doing wrong? Please help me with this.

Thanks, Dragon