-
Notifications
You must be signed in to change notification settings - Fork 17
[identityManagement] Support generating new challenge codes for non-verified Identities. #981
Copy link
Copy link
Closed
Labels
D1-featureA new feature, a piece of functionality that needs to be developedA new feature, a piece of functionality that needs to be developedI3-highshould be completed within 5 working daysshould be completed within 5 working days
Description
Context
Pallet: identityManagement[Mock]
Consider the following scenario
- A user request
identityManagement.linkIdentity('Twitter', 'my-handle')->ChallengeCodeGeneratedevent is emitted. - User request again
identityManagement.linkIdentity('Twitter', 'my-handle').
Received:
The transaction fails with IdentityAlreadyExist.
Desired:
On point 2, generate a new challenge code. i.e., a ChallengeCodeGenerated event is emitted.
How this useful
- Better Developer Experience: It makes testing easier as you can re-use the same
web_typeandhandleto get the same results while not minding spending tokens. - Better User Experience: Users won't need to pay fees for
unlinkIdentityin case they lose their challengeCode, and retrieving through an indexer is not an option for them. - Better Consumer Experience: as a dApp developer, I would like to leave ChallengeCodes retrieval from an archive node for later.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
D1-featureA new feature, a piece of functionality that needs to be developedA new feature, a piece of functionality that needs to be developedI3-highshould be completed within 5 working daysshould be completed within 5 working days