Closed natarajbodhi closed 1 year ago
Not a hyper-fetch issue I think.
You don't need to call /sanctum/csrf-cookie
every login (submit).
subsequent requests to the Laravel application may receive 401 or 419 HTTP error response @see https://laravel.com/docs/10.x/sanctum#logging-in
Thanks @johngerome for help! 🚀
I will close the issue, if it still exist - I will reopen thread.
Describe the bug I'm trying to use HyperFetch in one my projects. When I use the code below trying to login I get 419 unknown status. But it is working fine with axios and nuxt's useFetch.
To Reproduce Steps to reproduce the behavior: async function handleLogin() { const client = new Client({ url: "http://localhost:8000" });
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.