Skip to content

Login sync bc#174

Merged
zephyranthes03 merged 15 commits into
masterfrom
login_sync_bc
Oct 21, 2025
Merged

Login sync bc#174
zephyranthes03 merged 15 commits into
masterfrom
login_sync_bc

Conversation

@zephyranthes03

Copy link
Copy Markdown
Contributor

What we happen
When BigCommerce (BC) customer sync failed, our side treated it as a hard failure. That meant the login flow could get interrupted even though the problem was on the BC side-inefficient and brittle.
What I changed
Post-login customer sync: Added a sync step that runs during/after login. Even if the initial sync fails, subsequent logins will automatically retry the account sync so users can continue.
Stricter logging: Raised the log level for related warnings so we can better monitor recurring patterns and catch regressions faster.
Impact
BC-side sync can fix when user login process.
We’ll keep an eye on the elevated warnings to validate that retries are working as expected and to spot any edge cases.

@zephyranthes03 zephyranthes03 requested a review from a team as a code owner October 20, 2025 23:38
@zephyranthes03 zephyranthes03 merged commit 0970060 into master Oct 21, 2025
4 of 6 checks passed
@zephyranthes03 zephyranthes03 deleted the login_sync_bc branch October 21, 2025 16:48
zephyranthes03 added a commit that referenced this pull request Oct 30, 2025
zephyranthes03 added a commit that referenced this pull request Oct 31, 2025
* Add rate limiting and security to OAuth endpoints

- Add rate limiting to all OAuth endpoints to prevent abuse
- Token endpoint: 100/min per IP+client_id (independent quotas per OAuth client)
- Authorize endpoint: 50/min per IP
- User OAuth (GitHub/Google): 20/min per IP
- Invalid paths: 10/min per IP
- Add catch-all route for scanning attacks (/oauth/.env, etc.)
- Support X-Forwarded-For for load balancers

Fixes Datadog errors from endpoint scanning attacks.

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

Co-Authored-By: Claude <noreply@anthropic.com>

* Revert "Login sync bc (#174)"

This reverts commit 0970060.

* Revert "Update Oauth account can't recevice password changing email (#173)"

This reverts commit 3b7cd90.

* Revert "Redirect 405 error (#172)"

This reverts commit b16b416.

* Revert "Fix BigCommerce integration to prevent incomplete account creation (#171)"

This reverts commit d37bde6.

* Revert "Update email login cases - only 422 email exist case can success now (#170)"

This reverts commit f836a1e.

* Revert "Fix deploy issue (#169)"

This reverts commit 1c25838.

* Revert "Add rate limiting and security to OAuth endpoints"

This reverts commit 0a65c21.

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants