Client React UI SDK: Wallet provider wrapper for useAuth core (part 2)
Description
This contains the changes for adding the smart wallet state within the useAuth hook from auth core by creating a wrapper provider and extending functionality of auth core.
Hooks added to React UI:
-
useAuthextends regular auth coreuseAuthhook but adds wallet context. -
CrossmintAuthProviderextends regularAuthProviderfrom core but adds context provider andcreateWalletfunction.
Test plan
Nextjs demo flow (part 1) all works as expected using this PR's changes
⚠️ No Changeset found
Latest commit: af9ca3e082ebc9483360c956a1172bedd2956a65
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Few annotations i'm bumping as a reminder:
- https://github.com/Crossmint/crossmint-sdk/pull/660#discussion_r1719103468
- https://github.com/Crossmint/crossmint-sdk/pull/660#discussion_r1719102923
- https://github.com/Crossmint/crossmint-sdk/pull/660#discussion_r1718960995