I know this is a late reply, but just incase anyone lands here, there's a nuxt module for this already.
Authenticate with Laravel Fortify + Sanctum + Nuxt 3
Hello I want to use these three in API format. I was able to create such a authenticate with sanctum and nuxt. But because I want to benefit from the features of Fortify, I need to do this with Fortify.
To make things more organized, I have used the Laravel module package and created a user management module called Users. In this module, the User model is created exactly the same as Laravel's default User model.
When I use the fortify registration root, the registration is done successfully, but unfortunately, the user that is created is not logged in automatically.
In post man when to the address I go to api/user and it gives an error of no login.
Please or to participate in this conversation.