Closed kirbyjs closed 4 years ago
Unfortunately, no community resources were available to help resolve this issue after two weeks, and it is being closed. We close unresolved community issues to keep the issue tracker organized and effective. Please check https://hapi.dev/support for other support options.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
Currently, I'm trying to add a pub/sub with
@hapi/nes
with cookie authentication. In production my app is using@hapi/hapi
and@hapi/cookie
to authenticate our REST endpoints.This is the server code that I added:
This is the browser client code that I added:
The
nes/auth
endpoint returns{"status":"authenticated"}
, but I did see that the returned cookie size was massive:I'm not sure if that has anything to do with it or not. I also played around with the
password
, but that didn't really affect the size of the cookie.I also tested in Chrome, Firefox and Safari, and all of them had the same result.
What was the result you got?
Error: Connection requires authentication
What result did you expect?
No authentication issue.