next-auth
Version: 
Authentication for Next.js
28 lines (24 loc) • 547 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = Zoom;
function Zoom(options) {
  return {
    id: "zoom",
    name: "Zoom",
    type: "oauth",
    authorization: "https://zoom.us/oauth/authorize",
    token: "https://zoom.us/oauth/token",
    userinfo: "https://api.zoom.us/v2/users/me",
    profile(profile) {
      return {
        id: profile.id,
        name: `${profile.first_name} ${profile.last_name}`,
        email: profile.email,
        image: null
      };
    },
    options
  };
}