I've been having this dilemma when working with Laravel Passport and VueJS 2 for SPA. I have my backeend in place with my front-end on the same project. I've come to the point where I need to implement the authentication. During my back-end development, I've been using the Password Grant (of Passport) for the API. Everything works as intended.
How did you implement passport for login and register for spa ? I want to do the same with my project but I have no clue. my spa is angular js and I've already set up passport installation on my project, but i have no clue how to use it for login and registration (creating token and pass it to the spa)
I'd appreciate your help.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us