- Remove OtpGateGuard from transactions controller (OTP verified at login) - Fix categories controller to use authenticated user instead of TEMP_USER_ID - Add comprehensive implementation plan document - Update .env.example with WEB_APP_URL - Prepare for admin dashboard development
35 lines
1.7 KiB
JavaScript
35 lines
1.7 KiB
JavaScript
"use strict";
|
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.OtpModule = void 0;
|
|
const common_1 = require("@nestjs/common");
|
|
const jwt_1 = require("@nestjs/jwt");
|
|
const otp_controller_1 = require("./otp.controller");
|
|
const otp_service_1 = require("./otp.service");
|
|
const otp_gate_guard_1 = require("./otp-gate.guard");
|
|
const auth_module_1 = require("../auth/auth.module");
|
|
const prisma_module_1 = require("../prisma/prisma.module");
|
|
let OtpModule = class OtpModule {
|
|
};
|
|
exports.OtpModule = OtpModule;
|
|
exports.OtpModule = OtpModule = __decorate([
|
|
(0, common_1.Module)({
|
|
imports: [
|
|
(0, common_1.forwardRef)(() => auth_module_1.AuthModule),
|
|
prisma_module_1.PrismaModule,
|
|
jwt_1.JwtModule.register({
|
|
secret: process.env.JWT_SECRET || 'your-secret-key',
|
|
signOptions: { expiresIn: '7d' },
|
|
}),
|
|
],
|
|
controllers: [otp_controller_1.OtpController],
|
|
providers: [otp_service_1.OtpService, otp_gate_guard_1.OtpGateGuard],
|
|
exports: [otp_service_1.OtpService, otp_gate_guard_1.OtpGateGuard],
|
|
})
|
|
], OtpModule);
|
|
//# sourceMappingURL=otp.module.js.map
|