I am trying to add google based authentication to my app. Here is what I am doing
- using passport-google-oauth20module for passport google strategy on my express.js server side
- I have create two endpoints, first auth/googleand secondauth/google/callbackwhich is a callback url for google-Oauth
- In the strategy definition I am trying to create a jwt token which I want to somehow send to client.
- On the client side which is a vue app, I have added google sign-in button which redirects on click to my endpoint created in server,
- After that, exchange of accessTokensandscoped informationshappens in the server side (where I am generating a jwt token as well). But I am wondering how can I get the access token back to the client after the authentication is successful on the server.
Note that I can't make an ajax call as it will raise cors issue. Any suggestions are highly appreciated ; 
 
     
    