I just started learning web development and I don't fully understand authentication.
I wrote an API using Express JS and (unfortunately) decided to write my front end in a separate web application using Vue JS. I am now trying to add a login system using Passport JS and am realizing the drawbacks to separating my back end from my front end.
Where should I initialize Passport JS? My initial thought was to initialize it in my Vue application and get validation from my API for the username and password. However all the documentation is about initializing it back end.
Basically I'm just wondering what the typical architecture looks like for an application with separated back end and front end.