Skip to main content

Function: hashClientSecret()

hashClientSecret(args): string

Defined in: oauth.ts:96

Hashes a client_secret with SHA-256 (hex output).

Plain SHA-256 is the right primitive here, not hashPassword's PBKDF2: a secret issued by handleRegister is 32 random bytes, so there is no low-entropy guess space for a key-derivation function to slow down.

Parameters

ParameterType
args{ clientSecret: string; }
args.clientSecretstring

Returns

string