Skip to content

feat(credentials): multiple credentials per provider#3211

Open
icecrasher321 wants to merge 29 commits intostagingfrom
feat/mult-credentials-rv
Open

feat(credentials): multiple credentials per provider#3211
icecrasher321 wants to merge 29 commits intostagingfrom
feat/mult-credentials-rv

Conversation

@icecrasher321
Copy link
Collaborator

@icecrasher321 icecrasher321 commented Feb 13, 2026

Summary

Credentials to add multiple connections to same integration

Type of Change

  • New feature

Testing

Added unit tests, tested multiple cases manually. Tested backfill.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Feb 14, 2026 10:26pm

Request Review

@icecrasher321 icecrasher321 marked this pull request as ready for review February 14, 2026 20:19
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 14, 2026

Too many files changed for review. (112 files found, 100 file limit)

@icecrasher321
Copy link
Collaborator Author

bugbot run

@icecrasher321
Copy link
Collaborator Author

bugbot run

@icecrasher321
Copy link
Collaborator Author

bugbot run

@icecrasher321
Copy link
Collaborator Author

bugbot run

@icecrasher321
Copy link
Collaborator Author

bugbot run

await db
.delete(account)
.where(and(eq(account.userId, session.user.id), eq(account.id, accountId)))
} else if (providerId) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Account disconnect ignores provider filter

Low Severity

When accountId is provided, deletion matches only account.userId and account.id, and ignores the requested provider. A mismatched request can disconnect a different provider account than the one the caller selected, because the provider input is no longer enforced in this branch.

Fix in Cursor Fix in Web

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a real problem

@icecrasher321
Copy link
Collaborator Author

bugbot run

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

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