Auto-commit 2026-04-29 16:31
This commit is contained in:
35
node_modules/next-auth/providers/azure-ad-b2c.js
generated
vendored
Normal file
35
node_modules/next-auth/providers/azure-ad-b2c.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = AzureADB2C;
|
||||
function AzureADB2C(options) {
|
||||
var _options$issuer;
|
||||
const {
|
||||
tenantId,
|
||||
primaryUserFlow
|
||||
} = options;
|
||||
const issuer = (_options$issuer = options.issuer) !== null && _options$issuer !== void 0 ? _options$issuer : `https://${tenantId}.b2clogin.com/${tenantId}.onmicrosoft.com/${primaryUserFlow}/v2.0`;
|
||||
return {
|
||||
id: "azure-ad-b2c",
|
||||
name: "Azure Active Directory B2C",
|
||||
type: "oauth",
|
||||
wellKnown: `${issuer}/.well-known/openid-configuration`,
|
||||
idToken: true,
|
||||
profile(profile) {
|
||||
return {
|
||||
id: profile.sub,
|
||||
name: profile.name,
|
||||
email: profile.emails[0],
|
||||
image: null
|
||||
};
|
||||
},
|
||||
style: {
|
||||
logo: "/azure.svg",
|
||||
text: "#fff",
|
||||
bg: "#0072c6"
|
||||
},
|
||||
options
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user