Roblox - Finish external login implementation

Job ID: 35163044

Budget: $40 – $50 USD

Hello, I have been attempting to replicate roblox's login but externally, Basically I provide my user/pass to my website and hit the roblox endpoints to get the cookies it returns.
My issue is that, I am able to do this and solve the captcha based on roblox api.
Roblox API: https://auth.roblox.com/docs#!/Authentication/post_v2_login
The issue is the response I'm getting after reposting to the api is..
"You must pass the robot test before logging in.", when it should be passing.

I would like for someone to take a look at my code and solve this issue.