next-auth
Version:
Authentication for Next.js
33 lines (29 loc) • 625 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = IdentityServer4;
function IdentityServer4(options) {
return {
id: "identity-server4",
name: "IdentityServer4",
type: "oauth",
wellKnown: `${options.issuer}/.well-known/openid-configuration`,
authorization: {
params: {
scope: "openid profile email"
}
},
checks: ["pkce", "state"],
idToken: true,
profile(profile) {
return {
id: profile.sub,
name: profile.name,
email: profile.email,
image: null
};
},
options
};
}
;