Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set primary DID for new DID #744

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

KulkarniShashank
Copy link
Contributor

What

This fix ensures that when a new DID (Decentralized Identifier) is created and marked as the primary DID, all other existing DIDs for that user are updated to not be the primary DID.

Why

Ensuring only one DID is marked as primary per user.

How

  • Modify the code to set the primary DID correctly: Update the relevant part of the codebase where DIDs are created or updated to ensure only one DID is marked as primary.
  • Update other DIDs: Implement logic to update all other DIDs to not be primary when a new primary DID is set.

KulkarniShashank added 2 commits May 31, 2024 17:39
Signed-off-by: KulkarniShashank <[email protected]>
Signed-off-by: KulkarniShashank <[email protected]>
@KulkarniShashank KulkarniShashank self-assigned this May 31, 2024
Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@KulkarniShashank KulkarniShashank merged commit b34850f into develop Jun 3, 2024
2 checks passed
@KulkarniShashank KulkarniShashank deleted the fix/primary-did-duplication branch June 3, 2024 07:02
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