"use strict";
(() => {
var exports = {};
exports.id = 748;
exports.ids = [748];
exports.modules = {

/***/ 32104:
/***/ ((module) => {

module.exports = require("@next-auth/prisma-adapter");

/***/ }),

/***/ 53524:
/***/ ((module) => {

module.exports = require("@prisma/client");

/***/ }),

/***/ 73227:
/***/ ((module) => {

module.exports = require("next-auth");

/***/ }),

/***/ 47449:
/***/ ((module) => {

module.exports = require("next-auth/providers/credentials");

/***/ }),

/***/ 41649:
/***/ ((module) => {

module.exports = require("next-auth/react");

/***/ }),

/***/ 96703:
/***/ ((module) => {

module.exports = require("siwe");

/***/ }),

/***/ 48534:
/***/ ((module) => {

module.exports = require("viem");

/***/ }),

/***/ 44734:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var next_auth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73227);
/* harmony import */ var next_auth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_auth__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _lightdotso_auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15559);
// Copyright (C) 2023 Light, Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.


const Auth = (req, res)=>{
    const authOpts = (0,_lightdotso_auth__WEBPACK_IMPORTED_MODULE_1__/* .nextAuthOptions */ .Nh)({
        req
    });
    const isDefaultSigninPage = req.method === "GET" && req?.query?.nextauth?.includes("signin");
    // Hide Sign-In with Ethereum from default sign page
    if (isDefaultSigninPage) {
        // Removes from the authOptions.providers array
        authOpts.providers.pop();
    }
    return next_auth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, authOpts);
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Auth);


/***/ })

};
;

// load runtime
var __webpack_require__ = require("../../../webpack-api-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [948,559], () => (__webpack_exec__(44734)));
module.exports = __webpack_exports__;

})();