Skip to content

Conversation

@chanioxaris
Copy link
Member

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 test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot
Copy link

changeset-bot bot commented Sep 25, 2024

🦋 Changeset detected

Latest commit: 9041cbe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

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

@chanioxaris chanioxaris force-pushed the haris/user-746-first-time-coinbase-wallet-user-onboarding-fails-to-complete branch from f1ecfaa to 96f4112 Compare September 25, 2024 09:51
// 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') {
Copy link
Member

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 ?

Copy link
Member Author

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

Copy link
Member Author

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

@chanioxaris chanioxaris force-pushed the haris/user-746-first-time-coinbase-wallet-user-onboarding-fails-to-complete branch from 96f4112 to 98c40a0 Compare September 25, 2024 10:14
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.
@chanioxaris chanioxaris force-pushed the haris/user-746-first-time-coinbase-wallet-user-onboarding-fails-to-complete branch from 98c40a0 to 9041cbe Compare September 25, 2024 10:16
@chanioxaris chanioxaris merged commit d7cea3f into main Sep 25, 2024
@chanioxaris chanioxaris deleted the haris/user-746-first-time-coinbase-wallet-user-onboarding-fails-to-complete branch September 25, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants