UNPKG

next-auth

Version:

Authentication for Next.js

33 lines (29 loc) 639 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = FortyTwo; function FortyTwo(options) { return { id: "42-school", name: "42 School", type: "oauth", authorization: { url: "https://api.intra.42.fr/oauth/authorize", params: { scope: "public" } }, token: "https://api.intra.42.fr/oauth/token", userinfo: "https://api.intra.42.fr/v2/me", profile(profile) { return { id: profile.id, name: profile.usual_full_name, email: profile.email, image: profile.image_url }; }, options }; }