Skip to content

feat: add dev-login endpoint - #10

Merged
phytter merged 1 commit into
mainfrom
feat/dev-login-endpoint
Apr 16, 2026
Merged

feat: add dev-login endpoint#10
phytter merged 1 commit into
mainfrom
feat/dev-login-endpoint

Conversation

@phytter

@phytter phytter commented Apr 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add /dev-login POST endpoint that allows authentication via email/name without Google OAuth, restricted to debug mode only (APP_DEBUG=True)
  • Add DevLoginData DTO and dev_login_service business logic that creates or updates users
  • Add tests covering new user creation, existing user login, and forbidden access when debug mode is off

Test plan

  • test_dev_login_success_new_user — creates a new user and returns access token
  • test_dev_login_success_existing_user — logs in existing user and updates last_login
  • test_dev_login_forbidden_when_not_debug — returns 403 when APP_DEBUG is false

🤖 Generated with Claude Code

@phytter
phytter merged commit f8111a0 into main Apr 16, 2026
1 check passed
@phytter
phytter deleted the feat/dev-login-endpoint branch April 25, 2026 17:56
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