Neah/node_modules/next-auth/core/routes/providers.js
2025-04-17 12:39:10 +02:00

30 lines
492 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = providers;
function providers(providers) {
return {
headers: [{
key: "Content-Type",
value: "application/json"
}],
body: providers.reduce((acc, {
id,
name,
type,
signinUrl,
callbackUrl
}) => {
acc[id] = {
id,
name,
type,
signinUrl,
callbackUrl
};
return acc;
}, {})
};
}