I am using loopback framework(Node.js) with angular js(front end) and postgresql (DB)for my application,In my application i used third party login "passport-google-oauth".
After the google auth, call back url return the response as below mentioned code.
EX: http://localhost:3000/gauthServer
File: routes.js
app.get('/gauthServer', function(req, res) {
console.log(req.cookies.currentUserEmail);
console.log(req.cookies.currentUsername);
console.log(req.cookies.currentUserId);
console.log(req.cookies.accessToken);
//res.redirect("/");
});
In the above code it return the response correctly what i printed in console.log().
Expecting Result : I want the above results to store in postgresql DB.