defaultGeneratePasswordHash function
The default generate password hash, using argon2id.
Warning: Using a custom hashing algorithm for passwords will permanently disrupt compatibility with Serverpod's password hash validation and migration.
Implementation
Future<String> defaultGeneratePasswordHash(String password) =>
PasswordHash.argon2id(
password,
pepper: EmailSecrets.pepper,
allowUnsecureRandom: AuthConfig.current.allowUnsecureRandom,
);