Skip to content

Checks.state argument is missing when trying to sign in inside an IFrame #541

@GabrielMachado11

Description

@GabrielMachado11

Description

I am facing the error Checks.state argument is missing when i try sign in inside an IFrame. I checked some similar errors where env variables were misconfigured, but i think this is not my case since the authentication flow works fine in outside IFrame.

The problem happens in the first login attempt, if the user already is logged the redirect works as expected.

Reproduction

  • Create an application and install @auth0/nextjs-auth0
  • Setup environment variables
  • Instantiate application inside an IFrame
  • Sign in

Environment

Please provide the following:

  • Version of this library used: 1.5.0
  • Next JS version: 11.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions