Sanctum Guide for Wave?

produkt

Feb 11th, 2025 08:10 PM

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.

bobbyiliev

Feb 12th, 2025 05:38 AM

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 the auth:sanctum middleware.

Good luck!

produkt

Feb 12th, 2025 09:13 AM

Well if you ever get the urge to try it out, please keep me posted :) I am dying to integrate cookie based session auth and I'm having a hard time implementing it