Skip to content

Add entire auth object to validation context options #2886

@nlindley

Description

@nlindley

We were hoping to get to auth.strategy in a payload validation function. It looks like only isAuthenticated and credentials are passed. Is there a reason context.auth can’t be set to request.auth? Or could strategy and mode be added?

https://github.com/hapijs/hapi/blob/master/lib/validation.js#L119

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions