Auth cookie
Hello Everyone, I have a nuxt 3 application with an auth system, when I log the user, i store the user data in a cookie this way :
And I have a global client middleware that will feed my pinia data thanks to this cookie
All of this works fine, the problem is that a malecious user can modify the contents of their own user's cookie to access things they shouldn't, how can i prevent it?
And I have a global client middleware that will feed my pinia data thanks to this cookie
All of this works fine, the problem is that a malecious user can modify the contents of their own user's cookie to access things they shouldn't, how can i prevent it?