UNPKG

next-auth

Version:

Authentication for Next.js

33 lines (28 loc) 667 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Okta; function Okta(options) { return { id: "okta", name: "Okta", type: "oauth", wellKnown: `${options.issuer}/.well-known/openid-configuration`, authorization: { params: { scope: "openid email profile" } }, profile(profile) { var _profile$name; return { id: profile.sub, name: (_profile$name = profile.name) !== null && _profile$name !== void 0 ? _profile$name : profile.preferred_username, email: profile.email, image: profile.picture }; }, options }; }