So, following this post, I’m trying to get a verification token from https://twostepverification.roblox.com/v1/users/{USERID}/challenges/authenticator/verify in order to do more stuff with all this weird javascript thingy. However, when I make the post to the url, it always returns “Token Validation Failed”. I include the xcsrf token in the headers, but I keep getting the same annoying error and idk why. Please help
my javascript code (just in case)
noblox.http({
url: `https://twostepverification.roblox.com/v1/users/${userId}/challenges/authenticator/verify`,
options: {
resolveWithFullResponse: true,
method: 'POST',
headers: {
"Content-Type": "application/json",
"X-CSRF-TOKEN": xcsrf
},
body: JSON.stringify({
challengeId: challengeId,
actionType: 'Generic'
})
}
}).then(function(result) {
console.log(result.body)
})
})