UNPKG

next-auth

Version:

Authentication for Next.js

31 lines (29 loc) 493 B
"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; }, {}) }; }