UNPKG

svelte-guardian

Version:

Batteries included authentication for SvelteKit applications.

5 lines (4 loc) 338 B
export declare const hashPassword: (password: string) => Promise<string>; export declare const verifyPassword: (storedPassword: string, providedPassword: string) => Promise<boolean>; export declare const generateSecureToken: (length?: number) => Promise<string>; export declare const timingSafeCompare: (a: string, b: string) => boolean;