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.Dismiss alert
What are you trying to achieve or the steps to reproduce ?
We wasted several hours trying to configure our login page to be something other than /login, in the example below we tried using /foo.login. After asking in the Hapi slack channel, it was pointed out to us that if you do not assign the cookie a path, it defaults to null and only works with the path /login and therefore breaks the code if you do not specify it as / for a different path. It would be appreciated if the documentation was updated with this an example or highlight that the path must be noted if you wish to using anything other than the default.
I've spent hours to understand why the example didn't work when changing auth route path to be prefixed with /auth, I think it would be a good thing to just add the following to the example with a comment:
cookie: {
...
path: '/',// Required to use a different login route path (like /auth/login)}
Context
What are you trying to achieve or the steps to reproduce ?
We wasted several hours trying to configure our login page to be something other than
/login
, in the example below we tried using/foo.login
. After asking in the Hapi slack channel, it was pointed out to us that if you do not assign the cookie a path, it defaults to null and only works with the path/login
and therefore breaks the code if you do not specify it as/
for a different path. It would be appreciated if the documentation was updated with this an example or highlight that the path must be noted if you wish to using anything other than the default.The text was updated successfully, but these errors were encountered: