Next.js Discord

Discord Forum

Next auth error : State cookie was missing

Unanswered
Zepeto posted this in #help-forum
Open in Discord
I get this error after authenticating on my identity server
message: 'Nonce cookie was missing.'
Here is my provider config :
{
  id: "duende",
  name: "Duende IS6",
  type: "oauth",
  issuer: process.env.ISSUER,
  clientId: process.env.ID,
  wellKnown: process.env.ISSUER + "/.well-known/openid-configuration",
  authorization: {
    params: {
      scope: process.env.SCOPE,
      response_type: "id_token token",
      response_mode: "form_post",
    },
  },
  idToken: true,
  checks: ["nonce"],
  profile(profile) {
    console.log(profile);
    return {
      id: profile.sub,
      name: profile.name,
      email: profile.email,
      image: profile.picture,
    };
  },
},


Can anyone tell me what I've done wrong ? thanks

10 Replies

@B33fb0n3 that's next-auth?
Yes
it does not look like a valid configuration for auth0 for me 🤔
@Zepeto Nop
do it
@B33fb0n3 do it
I've added "state" in the check I know have this error :
'State cookie was missing.'