Hooks that are fired on the server side are only available for use for plugins in their server side code. Same for client side hooks they are only available for use in the client side code of plugins.
Hook suggestion
-
Hi, I m writing my own plugin for auth, it will check if the token exists and it is valid (with custom APIs) then proceed, if not then logout.
I looked into website found that this hook can help me "response:middleware.authenticate"
I have integrated it and tested it locally, but sometimes it doesn't execute at all. I don't know the reason. So I m a little concern that may be I cannot rely on it. if there any other hook which can be use for auth check please let me know
Thanks
-
@julian no I m not using session sharing because I need to use client specific endpoints, so if you can tell me which hook is best for check token authorization, it will be helpful
Suggested Topics
-
-
-
-
-
Hook: user is online
Unsolved Plugin Development
Copyright © 2023 NodeBB | Contributors