🚨 Announcement: A New Chapter for Vendure read more

PasswordHashingStrategy

PasswordHashingStrategy

Defines how user passwords get hashed when using the NativeAuthenticationStrategy.

Signature

interface PasswordHashingStrategy extends InjectableStrategy {
  hash(plaintext: string): Promise<string>;
  check(plaintext: string, hash: string): Promise<boolean>;
}

Extends

Members

hash

method
type:
(plaintext: string) => Promise<string>

check

method
type:
(plaintext: string, hash: string) => Promise<boolean>