Skip to content

[Feature]: Validation to prevent duplicate userIDs #2166

@abhishekpatil4

Description

@abhishekpatil4

Area of Improvement

TypeScript / Node.js SDK

Feature Name

Prevent creation of connections with duplicate userIDs

Describe the Feature

Add validation logic that checks for existing userIDs before allowing the creation of new connections via connectedAccounts.link(). If a duplicate userID is detected, prompt with an informative message and prevent adding the connection

Use Case / Motivation

This validation will help ensure connection data integrity by preventing duplicate userIDs, reducing confusion and potential errors during user management

Proposed Solution or API Design (Optional)

No response

Who does this impact?

  • Developers using the SDK
  • AI Agent frameworks (LangChain, OpenAI, etc.)
  • Dashboard users
  • End users of connected apps

Related Issues / References

No response

Would you like to contribute to this feature?

  • Yes, I can help implement it
  • Maybe, I can help test or review
  • No, just sharing the idea

Additional Context

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions