That's perhaps not a good idea. For security reasons you should use the session storage sessionStorage rather than a cookie.
Nov 15, 2021
2
Level 1
Sanctum api token inside a cookie
I'm building a project with angular and laravel as backend. I've decided to use sanctum as api and I was thinking to store the token inside a cookie right after the login. Then, for each request i would take it and extrapolate the token inside to permit the normal flow. Is it a bad idea ? Thanks in advance
Please or to participate in this conversation.