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
can we add prehandler in our routes while implementing Auth if yes pls give a sample piece of code how it should be implemented,also server.decorate didnt worked thats why got this error
Actually itried doing this but failed got error
export default fp(async (server, opts, next) => {
const verifyAuthUserService = verifyAuthUser(server, opts, next);
server.decorate('verifyAuthService',{...verifyAuthUserService});
next();
});
after this i was trying to access it in prehandler it didnt worked. error.txt
The text was updated successfully, but these errors were encountered:
can we add prehandler in our routes while implementing Auth if yes pls give a sample piece of code how it should be implemented,also server.decorate didnt worked thats why got this error
Actually itried doing this but failed got error
export default fp(async (server, opts, next) => {
const verifyAuthUserService = verifyAuthUser(server, opts, next);
server.decorate('verifyAuthService',{...verifyAuthUserService});
next();
});
after this i was trying to access it in prehandler it didnt worked.
error.txt
The text was updated successfully, but these errors were encountered: