games_app/backend/dist/services/passwordResetService.d.ts
2026-06-29 15:01:23 +02:00

18 lines
647 B
TypeScript

/**
* Password reset: request link by email and set new password with token.
*/
export declare function buildResetPasswordUrl(rawToken: string): string;
/**
* Sends reset link if account exists. Always returns generic success (no email enumeration).
*/
export declare function requestPasswordReset(email: string): Promise<{
message: string;
devResetUrl?: string;
}>;
export declare function resetPasswordWithToken(rawToken: string, newPassword: string): Promise<{
message: string;
}>;
export declare function validateResetToken(rawToken: string): Promise<{
valid: boolean;
}>;
//# sourceMappingURL=passwordResetService.d.ts.map