Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hmchenaran's avatar

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.

0 likes
1 reply

Please or to participate in this conversation.