UNPKG

next-auth

Version:

Authentication for Next.js

28 lines (24 loc) 613 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = GitHub; function GitHub(options) { return { id: "github", name: "GitHub", type: "oauth", authorization: "https://github.com/login/oauth/authorize?scope=read:user+user:email", token: "https://github.com/login/oauth/access_token", userinfo: "https://api.github.com/user", profile(profile) { return { id: profile.id.toString(), name: profile.name || profile.login, email: profile.email, image: profile.avatar_url }; }, options }; }