Sanctum Guide for Wave?
Any chance we can get a tutorial/guide on how to implement Sanctum into Wave? I tried the instructions on https://laravel.com/docs/11.x/sanctum but not sure I'm doing it correctly. Testing on Insomnia looks like I get cookies correctly from /sanctum/csrf-cookie
and I think I can login, but other endpoints show redirection to login page.
Hey,
Unfortunately, I don’t have a guide for integrating Sanctum with Wave, and I haven’t tested it myself. You might want to check the Laravel Sanctum documentation and experiment with different setups to see what works best for your project.
Some things that you might want to check would be:
- Double-check that your authentication guard is set correctly in
config/sanctum.php
. - Make sure your API routes are inside
routes/api.php
and use theauth:sanctum
middleware.
Good luck!