I'm building a web application with an ASP.NET Web API backend and a Vue.js frontend. I've implemented JWT authentication and am storing the access token in an HTTPOnly cookie for security reasons. However, I'm facing a challenge in checking users auth status on the frontend.
Since the token is HTTPOnly, it's inaccessible from JavaScript, including Vue.js. This means I can't directly check if a user is authenticated on the frontend.
My question is how can I effectively check users auth status on the Vue.js frontend while maintaining the security of the HTTPOnly JWT token? Are there any recommended strategies or patterns to achieve this?