function(accessToken, refreshToken, profile, done) {
// Here you want to lookup or create the user in the database
/* User.findOrCreate(..., function(err, user) {
if (err) { return done(err); }
done(null, user);
}); */
}
How can I do a database query?
By following the instructions from the mysql 2 npm package? mysql2 - npm
Or is there a way to use wappler queries in a server connect extension?
Iām a bit at a loss how I can pass the currently logged in userās email address.
I guess I need to translate this āserver connectā way to code:
Same here. Iām trying to use passport.js and authenticate user after the callback.
Any ideas how to do this @JonL?
Iām talking about this part
function(accessToken, refreshToken, profile, done) {
// Here you want to lookup or create the user in the database
/* User.findOrCreate(..., function(err, user) {
if (err) { return done(err); }
done(null, user);
}); */
}