How to get the captcha token after solving fun captcha?

Hello developers!
I am currently making a login system for my ranking service and i have done the basic setups so the user can do the captcha, There is one problem though, When the user solves the i cant rly get the captcha token.

I am using this nodejs api: funcaptcha - npm

and i have done creating sessions and challenges and solving just need help getting the captcha token.

my code for solving.

router.post("/captcha/answer", async (req, res) => {
                if (currentChallange) {
                    const awnser = req.body.tile

                    const awn = await currentChallange.answer(awnser)


                    if (currentlyOnWave === TotalWaves) {


                        if (awn.solved === true) {
                            console.log(awn)
                            const postRequest = await axios.post("https://auth.roblox.com/v2/login", {
                                "cType": "Username",
                                "cValue": Username,
                                "password": Password,
                                "captchaId": data["unifiedCaptchaId"],
                                "captchaToken": "string",
                                "captchaProvider": "string",
                                "challengeId": challenge["challengeID"]
                            }, {
                                'X-CSRF-TOKEN': c,
                                'Referer': "https://www.roblox.com",
                                'user-agent': User,
                                'content-type': 'application/json;charset=UTF-8',
                                'accept': 'application/json, text/plain, */*',
                            })
1 Like

This has nothing to directly do with scripting on Roblox.

1 Like

Its using the roblox authentication API so i would classify it as scripting support?

2 Likes

Better suited to #help-and-feedback:platform-usage-support.

1 Like

console.log(“Sucess!”)
console.log(postRequest.data)
if (postRequest.data.success === true) {
console.log(“Great! it worked!”)
}
else {
console.log(“The Login request failed”)
}
}
else {
console.log(“you didnt solve the captcha”)
}

                }
            }
        })

I need help getting the captcha token.

1 Like

Ah ok! I didn’t know that category existed thanks you for telling me!

2 Likes

It’s all good, my apologies for not mentioning it in my initial reply.

2 Likes

Found the solution! You use the token you generate for the captchaToken and for the captchaProvider you use “PROVIDER_ARKOS_LABS”

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.