ENG-3748 fix(portal): fix timeout on create identity and claim flows #812
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Affected Packages
Apps
Packages
Tools
Overview
This PR aims to improve error handling around create identity and create claim flows. It should provide more detailed toasts on API errors, as well as ensure that the transaction times out after 30 seconds, if the offchain POST does not complete in that time.
Screen Captures
If applicable, add screenshots or screen captures of your changes.
Declaration
PR Summary by Typo
Summary:
This pull request reduces logout delay and introduces a new timeout mechanism for form submission in
CreateIdentityForm
.Key Points:
privy-logout.tsx
.submitWithTimeout
function added tocreate-identity-form.tsx
for form submission with timeout and error handling.CreateIdentityForm
changes: setsis_contract
flag and refactorssubmitWithTimeout
to return created identity.To turn off PR summary, please visit Notification settings.