# How To Access The /Verify Network Response In My JavaScript Using Okta Widget and MFA

**URL:** <https://devforum.okta.com/t/how-to-access-the-verify-network-response-in-my-javascript-using-okta-widget-and-mfa/20050>\
**Category:** OAuth/OIDC\
**Tags:** widget, oauth\
**Created:** [March 31, 2022, 10:18pm UTC](https://devforum.okta.com/t/how-to-access-the-verify-network-response-in-my-javascript-using-okta-widget-and-mfa/20050 "2022-03-31T22:18:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![0ccDave](https://avatars.discourse-cdn.com/v4/letter/0/9f8e36/32.png) [@0ccDave](https://devforum.okta.com/u/0ccDave)\
**Post date:** [March 31, 2022, 10:18pm UTC](https://devforum.okta.com/t/how-to-access-the-verify-network-response-in-my-javascript-using-okta-widget-and-mfa/20050/1 "2022-03-31T22:18:13Z")

</div>

Hi,

I’m using the Okta Widget on my browser and I am trying to implement MFA. Before when I was just using the password to confirm my users without MFA the below worked just fine.

```auto
const oktaSignIn = new OktaSignIn({
    baseUrl: [baseURL],
    clientId: [clientId],
    authParams: {
        issuer: [issuer]
    },
    features: {
        rememberMe: false
    }
});

const authClient = new OktaAuth({
    issuer: [issuer]
})

    oktaSignIn.renderEl({
        el: '#okta-widget-container'
    }, function success(res) {
        if (res.status === 'SUCCESS') {
            authClient.session.get().then(e => {
//HERE IS WHERE I GOT ALL THE INFORMATION I NEEDED TO USE MY CUSTOM LOGIC//
                console.log("response", e);
            }).catch(function (err) {
                alert("Okta Login Error. Please try again or try our standard login method.");
            });
        } else {
            alert("Okta Login Error. Please try again or try our standard login method. \nMessage: " + err);
        }
    })

```

Now, however, since I’ve implemented my MFA this logic is ignored by the Okta widget and is not triggered. I believe I have my MFA configured correctly as I can go all the way to the end of the MFA process and get a “status: success” response from the “api/v1/authn/factors/[hash]/verify?rememberDevice=false” endpoint.

All I need to do is have a way to have a callback function or built in method to call whenever “/verify” is called, so then I can parse through the response and continue with my custom logic.

Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![0ccDave](https://avatars.discourse-cdn.com/v4/letter/0/9f8e36/32.png) [@0ccDave](https://devforum.okta.com/u/0ccDave)\
**Post date:** [April 5, 2022, 1:31pm UTC](https://devforum.okta.com/t/how-to-access-the-verify-network-response-in-my-javascript-using-okta-widget-and-mfa/20050/2 "2022-04-05T13:31:44Z")

</div>

Hoping to get some help here soon. Hoping this is possible.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 9:06pm UTC](https://devforum.okta.com/t/how-to-access-the-verify-network-response-in-my-javascript-using-okta-widget-and-mfa/20050/3 "2024-02-12T21:06:06Z")

</div>

Closed on February 12, 2024, 9:06pm UTC


