Skip to content

[Bug][Backend] Server startup fails because TWO_FACTOR_ENCRYPTION_KEY is missing from .env.example #1609

Description

@agarwalpranav0711

Bug Summary

The backend authentication setup requires the environment variable TWO_FACTOR_ENCRYPTION_KEY, but this variable is not documented in backend/.env.example.

As a result, contributors following the documented setup process may encounter a startup failure because the required variable is never defined.

Steps to Reproduce

  1. Clone the repository.
  2. Copy backend/.env.example to backend/.env.
  3. Follow the documented setup instructions.
  4. Start the backend server.

Actual Behavior

The server fails to start because TWO_FACTOR_ENCRYPTION_KEY is required but not present in the example environment configuration.

Expected Behavior

All required environment variables should be documented in backend/.env.example so contributors can complete setup successfully.

Suggested Fix

Add the missing variable to backend/.env.example with a placeholder value and a short description of the required format.

Example:

TWO_FACTOR_ENCRYPTION_KEY=your_64_character_hex_key_here

Additional Context

This improves contributor onboarding and keeps the environment documentation aligned with the backend authentication requirements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendIssues related to server-side, database logic or APIsbugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions