Cell API
    Preparing search index...

    Interface PasswordEncoder

    interface PasswordEncoder {
        encode(rawPassword: string): Promise<string>;
        matches(rawPassword: string, encodedPassword: string): Promise<boolean>;
        needsUpgrade?(encodedPassword: string): boolean;
    }

    Implemented by

    Index
    • Whether a stored hash should be replaced by encode() of the password once it matched (a legacy format, or weaker parameters than new hashes get). Login does so when the UserService can store passwords (UserService.updatePassword).

      Parameters

      • encodedPassword: string

      Returns boolean