You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Are you sure this is an issue with the hapi core module or are you just looking for some help?
Yeah—either an issue with hapi core, or a doc issue within API.md.
Is this a security related issue?
Nah.
What are you trying to achieve or the steps to reproduce?
I’ve been configuring a state autoValue.
My goal is this: if the cookie does not exist, it should be set with an automatically generated value. If it does exist, the value should be left as-is.
The documentation in API.md describes this option:
autoValue - if present and the cookie was not received from the client or explicitly set by the route handler, the cookie is automatically added to the response with the provided value. The value can be a function with signature async function(request)
While your test is flawed (you need to set isSecure: false on the state), the issue is real, and autoValue is set, regardless of the client supplied cookie.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Are you sure this is an issue with the hapi core module or are you just looking for some help?
Yeah—either an issue with hapi core, or a doc issue within API.md.
Is this a security related issue?
Nah.
What are you trying to achieve or the steps to reproduce?
I’ve been configuring a state
autoValue
.My goal is this: if the cookie does not exist, it should be set with an automatically generated value. If it does exist, the value should be left as-is.
The documentation in API.md describes this option:
What was the result you received?
Using this sample script:
autoValue
autoValue
What did you expect?
autoValue
Context
The text was updated successfully, but these errors were encountered: