-
Notifications
You must be signed in to change notification settings - Fork 408
fix(clerk-js): Handle gracefully Coinbase Wallet initial configuration #4218
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(clerk-js): Handle gracefully Coinbase Wallet initial configuration #4218
Conversation
🦋 Changeset detectedLatest commit: 9041cbe The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
f1ecfaa to
96f4112
Compare
| // Coinbase Wallet from scratch in order to authenticate, the initial generate | ||
| // signature request to be rejected. For this reason we retry the request once more | ||
| // in order for the flow to be able to be completed successfully. | ||
| if (provider === 'coinbase_wallet' && err.message === 'Request rejected') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything else we can check against ? Maybe a code ? Does this come back from the coinbase sdk ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also check the error type, but that means we will have to import the type from the coinbase sdk globally and i believe lose our lazy loading ability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with an error code check instead of the message
96f4112 to
98c40a0
Compare
There is a chance that as a first time visitor when you try to setup and use the Coinbase Wallet from scratch in order to authenticate, the initial generate signature request to be rejected. For this reason we retry the request once more in order for the flow to be able to be completed successfully.
98c40a0 to
9041cbe
Compare
Description
There is a chance that as a first time visitor when you try to setup and use the Coinbase Wallet from scratch in order to authenticate, the initial generate signature request to be rejected. For this reason we retry the request once more in order for the flow to be able to be completed successfully.
Before
before.mov
After
after.mov
Checklist
npm testruns as expected.npm run buildruns as expected.Type of change