atsid/generator-ats-node-webapp

View on GitHub
generators/auth-google/templates/server/initialization/sections/passport/strategies/google/oauth_callback.js

Summary

Maintainability
A
0 mins
Test Coverage
const convert = require('./convert_google_profile');
const commonOAuth = require('../../common_oauth_callback');
function findProfile(profile) {
  return {googleId: '' + profile.id};
}
module.exports = commonOAuth(findProfile, convert, 'Google');