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
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)
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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)
The text was updated successfully, but these errors were encountered: