generatePasswordHash static method
Generates a password hash from a users password and email. This value can safely be stored in the database without the risk of exposing passwords.
Implementation
static Future<String> generatePasswordHash(String password) async {
return PasswordHash.argon2id(
password,
pepper: EmailSecrets.pepper,
allowUnsecureRandom: AuthConfig.current.allowUnsecureRandom,
);
}