Next auth error : State cookie was missing
Unanswered
Zepeto posted this in #help-forum
ZepetoOP
I get this error after authenticating on my identity server
Here is my provider config :
Can anyone tell me what I've done wrong ? thanks
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
@Zepeto Nop
do it
@B33fb0n3 do it
ZepetoOP
I've added "state" in the check I know have this error :
'State cookie was missing.'