Documents / @faasjs/dev / SessionOptions
Type Alias: SessionOptions
SessionOptions =
object
Encryption and signing options for the Session helper.
Properties
cipherName?
optionalcipherName?:string
Cipher name used to encrypt the session payload.
Default
'aes-256-cbc'
digest?
optionaldigest?:string
Hash algorithm used by PBKDF2 and HMAC.
Default
'sha256'
iterations?
optionaliterations?:number
PBKDF2 iteration count used for key derivation.
Default
100
key?
optionalkey?:string
Cookie key used to store the encrypted session payload.
keylen?
optionalkeylen?:number
Total derived key length in bytes.
Default
64
salt?
optionalsalt?:string
Salt used for deriving the encryption key.
Default
'salt'
secret
secret:
string
Secret source used to derive encryption and signing keys.
This must be configured explicitly. FaasJS throws during session initialization when it is missing.
signedSalt?
optionalsignedSalt?:string
Salt used for deriving the signing key.
Default
'signedSalt'