# Unable to parse interaction\_code from the url

**URL:** <https://devforum.okta.com/t/unable-to-parse-interaction-code-from-the-url/27071>\
**Category:** OAuth/OIDC\
**Created:** [February 29, 2024, 7:44pm UTC](https://devforum.okta.com/t/unable-to-parse-interaction-code-from-the-url/27071 "2024-02-29T19:44:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbudeci](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mbudeci](https://devforum.okta.com/u/mbudeci)\
**Post date:** [February 29, 2024, 7:44pm UTC](https://devforum.okta.com/t/unable-to-parse-interaction-code-from-the-url/27071/1 "2024-02-29T19:44:16Z")

</div>

Hello, please help me understand this error.  
I am trying to add Okta Sign-In Widget to our website, after I pass the authentication step I get a callback on [http://localhost:3000/login/callback](http://localhost:3000/login/callback) with this error.

```auto
{
"status": 500,
"errorText": "Unable to parse interaction_code from the url",
"env": "dev"
}

```

if I delete `useClassicEngine` another error appears,

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/c/c73b7b7edb1e5ccda22a26f08ab66ff832c0ff35.png)

```auto
const widgetConfig = {
      useInteractionCodeFlow: true,
      useClassicEngine: true,
      issuer,
      clientId,
      redirectUri,
      state,
      scopes,
      codeChallenge,
      codeChallengeMethod,
      otp,
};

```

---

<div class="post-metadata">

**Author:** ![akash-okta](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@akash-okta](https://devforum.okta.com/u/akash-okta)\
**Post date:** [March 20, 2024, 10:39am UTC](https://devforum.okta.com/t/unable-to-parse-interaction-code-from-the-url/27071/2 "2024-03-20T10:39:04Z")

</div>

Hi there,

Please note that Interaction Code Flow was introduced in Okta Identity Engine. So, when you keep the useClassicEngine property to ‘true’, the Sign-in widget will use the Classic Engine and will produce this error.

To get rid of this error, you will require to set the useInteractionCodeFlow property to ‘false’ if you do not have the requirement of the Interaction Code Flow. Otherwise, you will require to upgrade your Okta Classic org to Okta Identity Engine - [Identity Engine upgrade overview | Okta Developer](https://developer.okta.com/docs/guides/oie-upgrade-overview/main/)

You can learn more here in this article - [Okta Help Center (Lightning)](https://support.okta.com/help/s/article/interaction-code-grant-type-availability-in-okta-classic-engine?language=en_US)

You can refer to this documentation to choose the right flow based on your requirement - [OAuth 2.0 and OpenID Connect overview | Okta Developer](https://developer.okta.com/docs/concepts/oauth-openid/#choose-an-oauth-2-0-flow)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [April 19, 2024, 10:39am UTC](https://devforum.okta.com/t/unable-to-parse-interaction-code-from-the-url/27071/3 "2024-04-19T10:39:42Z")

</div>

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