Skip to content

store/pre-auth-hook: error if no session token sent #524

Open
@gr2m

Description

@gr2m

If a request has no session token, then we do return reply(Boom.unauthorized()), but that only calls the next .then callback and sets session in it to Boom.unauthorized().

We have to throw an error instead and set error.status to 404 so that the .catch callback can take care of it

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions