How to manage OAuth in Node-Express / Vue web app?
:) Hello,
For an one page web app you should use Authorization Code Flow and with Passport after an oauth attempt you should have a middleware that will redirect you in case of failure or success : Passport Documentation:
And a good exemple for me was this Traversy Media - backend app with oAuth
I don't think that passport is the problem, the flow of the token is in your case...