After successfully implementing Laravel-Vue.js Authentication using Passport API, I am now able to obtain the token and send requests to api/user. Initially, I used the normal authentication process by sending data through a POST request to /login, which resulted in me being authenticated and receiving a $_SESSION.
However, upon completing the implementation of the Passport API, I realized that my session no longer starts when attempting to authenticate. I even tried changing the middleware to api, but that didn't work either. This led me to two main questions:
- Do I still need to rely on sessions or will the access_token handle communication with the backend?
- Is it normal for the session to not start after implementing API Auth? While I do get tokens and user details upon authentication, there is no session in the backend.