okta / okta-oidc-js

okta-oidc-js
https://github.com/okta/okta-oidc-js
Other
393 stars 232 forks source link

okta-react + HapiJS -> Invalid Cookie Error #212

Open rodoabad opened 6 years ago

rodoabad commented 6 years ago

{"statusCode":400,"error":"Bad Request","message":"Invalid cookie value"}

I've setup an example project to reproduce the issue.

https://github.com/rodoabad/automatic-palm-tree

When you add the following,

// https://hapijs.com/api#route.options.state
{
  parse: true,
  failAction: 'log'
}

you would not get a cookie parsing error however, your /implicit/callback URL would be a blank page.

Uncaught SyntaxError: Unexpected token <

wkersting-bw commented 5 years ago

Hey @rodoabad did you ever find a solution to this error? I'm experiencing a very similar one now.