Skip to content

Conversation

mre
Copy link
Member

@mre mre commented Aug 1, 2025

Related to openpodcast/landing#15

Adds POST /register endpoint for user registration with automatic API key generation.

Features:

  • User registration with name and email validation
  • Automatic API key generation (op_ prefix format)
  • Duplicate email handling (returns existing user data with 409)
  • Database migration for users table
  • Comprehensive unit and E2E tests
  • Updated Jest config to support both TypeScript and JavaScript tests

The endpoint is public (no auth required) and integrates with the existing auth system using the openpodcast_auth.apiKeys table.

mre and others added 2 commits August 2, 2025 00:53
Related to openpodcast/landing#15

- Add POST /register endpoint for user registration
- Create users table with migration 15
- Generate API keys automatically on registration
- Handle duplicate email registration (409 response)
- Add comprehensive validation for name and email
- Include unit tests and E2E tests
- Update Jest config to support both TS and JS tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Update Jest configuration to use newer transform syntax
- Add isolatedModules option to improve TypeScript compilation
- Ensure Jest globals are properly recognized in test files
- All unit tests now pass without TypeScript errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

1 participant