UNPKG

next-auth

Version:

Authentication for Next.js

33 lines (29 loc) 686 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = GitLab; function GitLab(options) { return { id: "gitlab", name: "GitLab", type: "oauth", version: "2.0", scope: "read_user", params: { grant_type: "authorization_code" }, accessTokenUrl: "https://gitlab.com/oauth/token", authorizationUrl: "https://gitlab.com/oauth/authorize?response_type=code", profileUrl: "https://gitlab.com/api/v4/user", profile(profile) { return { id: profile.id, name: profile.username, email: profile.email, image: profile.avatar_url }; }, ...options }; }