Skip to content

feat(auth): validate authentication configuration - #21

Merged
rd-code-23 merged 1 commit into
mainfrom
feature/auth
Aug 17, 2026
Merged

rd-code-23 merged 1 commit into
mainfrom
feature/auth

Conversation

@rd-code-23

Copy link
Copy Markdown
Owner

Summary

  • add typed validation for Google OIDC, origins, session secrets, and session duration
  • derive environment-specific cookie configuration from the approved security policy
  • provide safe local placeholders in apps/api/.env.example
  • add focused tests for valid, missing, malformed, and production configuration
  • document the environment contract and file-purpose comment convention

Why

Authentication should fail fast when required configuration is missing or unsafe, without exposing secret values. This establishes a typed configuration boundary before session and OIDC middleware are implemented.

Validation

  • pnpm --filter @goforlift/api test — 11 tests passed
  • pnpm --filter @goforlift/api typecheck
  • pnpm --filter @goforlift/api lint
  • targeted Prettier checks
  • git diff --check

Closes #5

@rd-code-23
rd-code-23 marked this pull request as ready for review August 17, 2026 22:48
@rd-code-23
rd-code-23 merged commit 4bb3f39 into main Aug 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Auth][Phase 1] Add validated authentication environment configuration

1 participant