Skip to content

Error on example #7

@EdSabino

Description

@EdSabino

I'm not sure which template to follow, so I will outline the problem I'm facing.

When I run this example(with the application I created on Zitadel cloud), on the callback I receive the error ClientError: invalid response encountered.

With a little further debugging, I was able to discover that the actual error message happening is one of the two: Unable to verify authorization request state or unexpected "state" response parameter encountered depending on how I force my hand.

I'm using the following configuration(and no env vars) for testing purposes:

app.use(await createZitadelMiddleware({
  domain: 'REDACTED',
  clientId: 'REDACTED',
  callbackURL: 'http://localhost:3000/auth/callback',
  sessionSecret: 'SECRET',
  sessionDuration: 3600,
}));

I have no clue why this is happening, hope you guys can help me. Nice app btw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions