nuxt-users
Version:
A comprehensive user management module for Nuxt 3 and Nuxt 4 applications with authentication, authorization, database support, and CLI tools
15 lines (14 loc) • 634 B
TypeScript
import type { ModuleOptions } from '../../../types.js';
/**
* Generates a password reset link and sends it to the user's email.
*/
export declare const sendPasswordResetLink: (email: string, options: ModuleOptions) => Promise<void>;
/**
* Resets the user's password using a valid token.
*/
export declare const resetPassword: (token: string, email: string, // Added email to quickly find the token
newPassword: string, options: ModuleOptions) => Promise<boolean>;
/**
* Deletes expired password reset tokens from the database.
*/
export declare const deleteExpiredPasswordResetTokens: (options: ModuleOptions) => Promise<void>;