Widget Version 7 on Classic "State token in authn"

I am migrating a widget to version 7 in an okta classic embedded widget for a custom domain.
In my flow I validate if there is an existing session, if there is not, the widget is rendered to log in to the app.

I have no issue when I log in from my custom domain, but when I try to login from an integrated saml app, after the call fo check if a session exists, an state token is generated and an introspect call is made, then when the credentials are put and the authn call is made, the state token in that requests generates an “Invalid token provided” and I cannot get a session because of that.

In version 6 I can log in without any issue.

Any idea what could be causing this issue and how I could fix it?