Add SMS OTP, harden auth, and fix order/checkout server bugs.
Ship 4-digit OTP with rate-limit attempts, Tehran-safe expiry/rass math, larger JSON body limit for check images, and safer order pricing/status guards. Include rebuilt dist for prebuilt deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+5
-2
@@ -1,18 +1,21 @@
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import { JwtService } from '@nestjs/jwt';
|
||||
import { PrismaService } from '../prisma/prisma.service';
|
||||
import { SmsService } from '../sms/sms.service';
|
||||
import { AdminLoginDto, RequestOtpDto, UpdateProfileDto, VerifyOtpDto } from './dto/auth.dto';
|
||||
export declare class AuthService {
|
||||
private readonly prisma;
|
||||
private readonly jwt;
|
||||
private readonly config;
|
||||
constructor(prisma: PrismaService, jwt: JwtService, config: ConfigService);
|
||||
private readonly sms;
|
||||
constructor(prisma: PrismaService, jwt: JwtService, config: ConfigService, sms: SmsService);
|
||||
requestOtp(dto: RequestOtpDto): Promise<{
|
||||
debugCode?: string | undefined;
|
||||
success: boolean;
|
||||
message: string;
|
||||
expiresAt: Date;
|
||||
debugCode: string;
|
||||
}>;
|
||||
private exposesDebugCode;
|
||||
verifyOtp(dto: VerifyOtpDto): Promise<{
|
||||
accessToken: string;
|
||||
user: {
|
||||
|
||||
Reference in New Issue
Block a user