UNPKG

passport-netlify

Version:

[Passport](http://passportjs.org/) strategy for authenticating with [Netlify](https://www.netlify.com/) using the OAuth 2.0 API.

16 lines 497 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function parseUserProfile(userInfo) { var profile = {}; profile.id = userInfo.id; profile.displayName = userInfo.full_name; if (userInfo.email) { profile.emails = [{ value: userInfo.email }]; } if (userInfo.avatar_url) { profile.photos = [{ value: userInfo.avatar_url }]; } return profile; } exports.parseUserProfile = parseUserProfile; //# sourceMappingURL=profile.js.map