UNPKG

next-auth

Version:

Authentication for Next.js

29 lines (25 loc) 593 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = GitLab; function GitLab(options) { return { id: "gitlab", name: "GitLab", type: "oauth", authorization: "https://gitlab.com/oauth/authorize?scope=read_user", token: "https://gitlab.com/oauth/token", userinfo: "https://gitlab.com/api/v4/user", checks: ["pkce", "state"], profile(profile) { return { id: profile.id, name: profile.username, email: profile.email, image: profile.avatar_url }; }, options }; }