After some more code digging and experiments I can answer my own question. A theme is a normal plugin and as such does not inherit any behavior from other plugins.
So you need to copy everything you need from the base theme library.js to your child theme. And of course, you need to declare client scripts explicitly.
Loading of missing templates from base theme is the only link between the base and the child theme.
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
@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
Copyright © 2023 NodeBB | Contributors