@baris That's it! Thanks a lot.
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