fix(oauth): updated oauth providers that had unstable reference IDs leading to duplicate oauth records#2441
Merged
waleedlatif1 merged 2 commits intostagingfrom Dec 18, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
test-sim
reviewed
Dec 18, 2025
ec5e2ce to
899978e
Compare
Contributor
Greptile SummaryThis PR fixes OAuth providers (Wealthbox, Slack, Webflow) that were generating unstable reference IDs, which caused duplicate credential records in the database. Key Changes
Issues Found
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant App
participant OAuth Provider
participant Auth System
participant Database
User->>App: Connect OAuth service
App->>OAuth Provider: Initiate OAuth flow
OAuth Provider->>User: Request authorization
User->>OAuth Provider: Grant access
OAuth Provider->>Auth System: Return tokens & user data
Auth System->>Auth System: getUserInfo() extracts stable identifier
Note over Auth System: Wealthbox: 'wealthbox-user'<br/>Slack: '{teamId}-{userId}'<br/>Webflow: 'webflow-{userId}'
Auth System->>Database: Check existing (userId, providerId)
alt Existing credential found
Database->>Auth System: Return existing account
Auth System->>Database: Update accountId, tokens, scopes
Note over Database: Replace credential for same provider
else No existing credential
Auth System->>Database: Create new account record
Note over Database: Store with stable accountId
end
Database->>Auth System: Success
Auth System->>App: OAuth connected
App->>User: Show success message
|
…eading to duplicate oauth records
899978e to
92c90f1
Compare
Collaborator
Author
|
@greptile |
waleedlatif1
added a commit
that referenced
this pull request
Dec 18, 2025
…eading to duplicate oauth records (#2441) * fix(oauth): updated oauth providers that had unstable reference IDs leading to duplicate oauth records * ack PR comments
waleedlatif1
added a commit
that referenced
this pull request
Dec 18, 2025
…n, developer, and custom domain salesforce orgs (#2441) (#2444) * fix(oauth): updated oauth providers that had unstable reference IDs leading to duplicate oauth records (#2441) * fix(oauth): updated oauth providers that had unstable reference IDs leading to duplicate oauth records * ack PR comments * ack PR comments * cleanup salesforce refresh logic * ack more PR comments
waleedlatif1
added a commit
that referenced
this pull request
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Tested manually
Checklist