UNPKG

next-auth

Version:

Authentication for Next.js

28 lines (24 loc) 556 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = FusionAuth; function FusionAuth(options) { return { id: "fusionauth", name: "FusionAuth", type: "oauth", authorization: `${options.issuer}oauth2/authorize`, token: `${options.issuer}oauth2/token`, userinfo: `${options.issuer}oauth2/userinfo`, profile(profile) { return { id: profile.sub, name: profile.name, email: profile.email, image: profile.picture }; }, options }; }