Skip to content

server.inject does not allow me to set auth artifacts, only auth credentials #2501

@anneveling

Description

@anneveling

When an auth plugin exposes authentication artifacts (such as the User object from a database lookup), to be accessed in all route handlers via the request.auth.artifacts object, then this cannot be tested anymore using the server.inject method.
That code only allows to set a credentials object in the options, but not the artifacts (too).
(working on a pull request to fix this too)

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