UNPKG

@lifeworld/lucia

Version:

A simple and flexible authentication library

15 lines (14 loc) 642 B
export declare function generateId(length: number): string; export declare function generateIdFromEntropySize(size: number): string; export declare class Scrypt implements PasswordHashingAlgorithm { hash(password: string): Promise<string>; verify(hash: string, password: string): Promise<boolean>; } export declare class LegacyScrypt implements PasswordHashingAlgorithm { hash(password: string): Promise<string>; verify(hash: string, password: string): Promise<boolean>; } export interface PasswordHashingAlgorithm { hash(password: string): Promise<string>; verify(hash: string, password: string): Promise<boolean>; }