Skip to main content

Variable: CLIENT_ARGON2_PARAMS

const CLIENT_ARGON2_PARAMS: object

Defined in: auth/src/auth/shared.ts:1072

The fixed Argon2id parameters a client must use when hashing a password locally before submitting it, so the same password always produces the same hash for a given account regardless of which device or session computed it. Deliberately lighter than a deployment's own configurable server-side hash_memory_cost etc. (see PasswordConfig), since this needs to run acceptably in a browser or mobile WASM context. These are NOT configurable — changing them changes the hash output and breaks login from any client still using the old constants.

Type Declaration​

hashLength​

readonly hashLength: 32 = 32

memoryCost​

readonly memoryCost: 19456 = 19456

parallelism​

readonly parallelism: 1 = 1

timeCost​

readonly timeCost: 2 = 2