Skip to main content

Configuration Best Practices

  • Use long, random secrets (64+ chars for HS256)
  • Never commit secrets to version control
  • Rotate secrets regularly
  • Enable JWE for sensitive data
  • Use environment variables or a .env file for all secrets