Skip to content

Conversation

@amrit110
Copy link
Member

This pull request introduces a comprehensive initial setup for authentication infrastructure, code quality enforcement, and developer tooling. It adds automated workflows for code checks and unit testing, configures Prettier and pre-commit hooks for code style and linting, and provides a Next.js demo app with server-side Google OAuth authentication. The changes establish a strong foundation for package development and secure authentication using a shared OAuth client model.

CI/CD and Code Quality Automation

  • Added GitHub Actions workflows for code checks (code_checks.yml) and unit tests (unit_tests.yml), ensuring automated linting, formatting, type-checking, and test coverage on pushes and pull requests. [1] [2]
  • Introduced .pre-commit-config.yaml and Prettier configuration (.prettierrc.json, .prettierignore) to enforce consistent code style, linting, type checks, and run tests before commits. [1] [2] [3]

Authentication Demo App (Next.js)

  • Added a fully functional Next.js demo app (apps/demo-nextjs) showcasing server-side Google OAuth 2.0 authentication with PKCE, domain restriction, and secure session management using HTTP-only cookies. Includes API routes for login, callback, logout, and session retrieval. [1] [2] [3] [4] [5]
  • Provided example environment configuration and documentation for setting up Google OAuth credentials and running the demo. [1] [2]

Monorepo and Package Management

  • Configured .npmrc for GitHub Packages registry and peer dependency handling, supporting monorepo development and private package publishing.

Documentation and Developer Experience

  • Rewrote the main README.md to explain the shared OAuth client architecture, integration steps, security features, and development workflow.
  • Added a Python version file for consistent tooling in CI and development.

Demo App Configuration

  • Added Next.js config (next.config.js) for the demo app with strict mode enabled.

@amrit110 amrit110 self-assigned this Nov 27, 2025
@amrit110 amrit110 added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 27, 2025
Environment variables are now only validated at runtime, not during the build phase. This allows CI builds to succeed without requiring actual OAuth credentials while still maintaining runtime validation.
@amrit110 amrit110 merged commit 165ba9e into main Nov 27, 2025
2 checks passed
@amrit110 amrit110 deleted the add_initial_mvp branch November 27, 2025 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants