Authentication inside IFrame with Next + Auth0

  • Which SDK this is regarding: auth0/nextjs-auth0
  • SDK Version: 1.5.0

My application is being instantiated as an IFrame in many clients and the authentication flow is not working as expected.

The calback function throws checks.state argument is missing when user make the first attempt to sign in. If user try to sign in, reload the page and sign in again, authentication and redirect works flawlessly.

Is it possible to fix this authentication flow?