Skip to content

feat(auth): start Google OIDC login - #24

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

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

Conversation

@rd-code-23

Copy link
Copy Markdown
Owner

Summary

  • add Google OIDC discovery through openid-client
  • add GET /auth/google to begin Authorization Code Flow
  • generate and persist per-attempt state, nonce, and PKCE values
  • request only the required openid email profile scopes
  • validate post-login destinations as safe root-relative application paths
  • add focused redirect and security tests without introducing test-only product endpoints

Why

The API needs a standards-compliant, protected login initiation flow before it can validate Google callbacks and create authenticated users.

Validation

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

Closes #8

@rd-code-23
rd-code-23 marked this pull request as ready for review August 18, 2026 22:41
@rd-code-23
rd-code-23 merged commit 5bde364 into main Aug 18, 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 2] Implement Google OIDC login initiation

1 participant