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
The problem is that now the request.user option appears for all routes, even those that do not use the authenticate plugin in the onRequest hook.
Is there a way to make the user property only appear for hooked routes?
The text was updated successfully, but these errors were encountered:
Prerequisites
Issue
Hello.
I'm using the fastify with typescript.
I created this plugin:
The problem is that now the request.user option appears for all routes, even those that do not use the authenticate plugin in the onRequest hook.
Is there a way to make the user property only appear for hooked routes?
The text was updated successfully, but these errors were encountered: