Skip to content

HAMUR_W5104: auth.session.password is a literal in the config

auth.session.password is a literal in the config. Warning HAMUR_W5104 belongs to @hamur/auth (5101 – 5200).

Message

text
HAMUR_W5104 auth.session.password is a literal in the config file, which ends up in the repository; use env("NAME")

Cause

auth.session.password is a string in the config file, which ends up in the repository.

Fix

Declare the variable in app/env.ts, write env("NAME") and set the secret in the environment.