I've got a new project and have started created routes in api.php to consume in VUE.
This a latest version (5.8) laravel project with telescope and passport installed. It is otherwise vanilla. Session are set to persist in the database, rather than the default option of file.
Adding routes requiring auth in web.php works just fine and redirects to the login page as required on accessing them while logged out.
However, if I attempt to access any route which has auth:api as it's middleware, the user session is logged out and I get a 401 unauthorized error and redirected to the login page.
On viewing AXIOS requests I can see that the various headers I've used in the past are all being sent as expected and the CSRF token is indeed included, as it is in the HTML header.
This is driving me to distraction so any help would be greatly appreciated as I've spent 6 hours trawling through commonly suggested fixes and have debugged to the best of my ability in Laravel.
Thanks all for anything you can point me to.