budibase/packages/auth/src/middleware/passport/google.js

14 lines
434 B
JavaScript
Raw Normal View History

2021-04-07 16:15:05 +02:00
// const CouchDB = require("../db")
2021-04-07 12:33:16 +02:00
exports.options = {
clientId: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
callbackURL: process.env.GOOGLE_AUTH_CALLBACK_URL,
// "http://localhost:" + (process.env.PORT || 3000) + "/auth/google/callback",
}
exports.authenticate = async function(token, tokenSecret, profile, done) {
// retrieve user ...
// fetchUser().then(user => done(null, user))
}