Skip to content

feat(auth): improve Google OAuth validation and language synchronization#79

Merged
aniebietafia merged 1 commit into
mainfrom
fixes/google_oauth
May 29, 2026
Merged

feat(auth): improve Google OAuth validation and language synchronization#79
aniebietafia merged 1 commit into
mainfrom
fixes/google_oauth

Conversation

@aniebietafia
Copy link
Copy Markdown
Contributor

  • Add flow parameter (login | signup) to Google OAuth login flow.
  • Add validations preventing OAuth auto-linking for email/password users and preventing login for non-existent users.
  • Add is_new_user boolean field to the POST /google/exchange response payload.
  • Synchronize speaking and listening languages on registration and profile updates.
  • Add integration and unit tests for OAuth flow validations and language synchronization behavior.

- Add `flow` parameter (`login` | `signup`) to Google OAuth login flow.
- Add validations preventing OAuth auto-linking for email/password users and preventing login for non-existent users.
- Add `is_new_user` boolean field to the `POST /google/exchange` response payload.
- Synchronize speaking and listening languages on registration and profile updates.
- Add integration and unit tests for OAuth flow validations and language synchronization behavior.

Signed-off-by: aniebietafia <aniebietafia87@gmail.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 29, 2026

Warning

Review limit reached

@aniebietafia, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 41 minutes and 2 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f514ba63-6476-4546-a17f-f373099b5394

📥 Commits

Reviewing files that changed from the base of the PR and between cf9ecd8 and 0d818cb.

📒 Files selected for processing (10)
  • app/modules/auth/api_docs.md
  • app/modules/auth/router.py
  • app/modules/auth/schemas.py
  • app/modules/auth/service.py
  • app/modules/user/api_docs.md
  • app/modules/user/router.py
  • tests/test_auth/test_auth_signup.py
  • tests/test_auth/test_oauth_google.py
  • tests/test_auth/test_oauth_service.py
  • tests/test_user/test_user_endpoints.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fixes/google_oauth

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@aniebietafia aniebietafia merged commit c7c0524 into main May 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant