-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: idkit state and error handling improvements (#194)
* fix: clear result and errorCode on bridge reset solves an issue where reopening the IDKit widget would resubmit the same proof to the callback functions * feat: error on request timeout throws connection_failed error if pollForUpdates gets a 404 from bridge (meaning request has expired) * feat: handle errors thrown in handleVerify ensures that handleVerify callbacks are processed async so the promise can reject on thrown errors and display them nicely in IDKit * feat: ensure returned credentialType is acceptable checks to ensure the credential_type in the proof returned from the bridge is one of the configured credential_types, and displays the relevant error if not this should only happen when manually selecting the wrong credential in the simulator, but good to have anyway * feat: log error when disallowed credential is returned * fix: document `async` in handleVerify callback runner
- Loading branch information
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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