-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving from 7.5.3 to 8.1.0: can't find the clearInvalid option equivalent #2391
Comments
Check the Server configuration and Connection configuration chapters in the migration guide. |
I also trying to find @AdriVanHoudt isnt it cookie based ? @kanongil I've checked but could not find that in migration guide. |
@ubaltaci I don't know I have never used it. But it is the only |
@AdriVanHoudt thank you, @briandela I think i figure it out but I could not understand the logic of separation of these state options. new Hapi.Server({connections: {
state: {
clearInvalid: true
},
routes: {
state: {
failAction: "log"
},
}
}});
// or
server.connection({
...
state: {
clearInvalid: true
},
routes: {
state: {
failAction: "log"
}
}
}) |
@ubaltaci there are two sets of options:
|
Trying to update from hapi 7.5.3 to 8.1.0. In 7.5.3 we were able to specify default options on how to deal with cookies. For example, we could set the following options for state:
{ cookies: { clearInvalid: true } }
.I can't see how to do this in Hapi 8.1.0 - it looks like the only options under connections - routes - state are
parse
, andfailAction
. Any ideas how to globally set clearInvalid for cookies?The text was updated successfully, but these errors were encountered: