Two Factor Auth error using REST API

I’m completely lost here on why this keeps saying the auth_token is not supplied when it’s clearly in the payload of the data being passed? I even went as far as to debug print how the python module is doing it. My params are the same and it doesn’t work. Any help is much appreciated. I’ve been at this for several days now with no headway. Not sure why :crazy_face:

{“errors”:[{“id”:“5bb378eacd42696f3b7a6a72aea0e860”,“status”:400,“code”:106,“title”:“Missing argument for 2FA login”,“source”:{“auth_token”:“missing for 2FA login”},“detail”:null,“meta”:null}]}

function checkUserLogin2FA() {    
    $.ajax({
        url: '#####/api/v1/auth/access_token',
        method: 'POST',

        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
            'Accept': 'application/json',
            'Connection': 'keep-alive'
        },
	    data: {
            grant_type: 'password',
            auth_token: '#####',
            username: '#####',
            password: '#####'
        },
        success: function (data) {
            console.log(JSON.stringify(data));
            console.log(data);
            $('#accessOutput2').html(data.access_token);
        },
        error: function (data) {
            console.log(data);
            $('#accessOutput2').html(data.responseText);
        }
    })
}

window.onload = function(){
  checkUserLogin2FA();
};