crossmint-sdk icon indicating copy to clipboard operation
crossmint-sdk copied to clipboard

Client React UI SDK: Wallet provider wrapper for useAuth core (part 2)

Open jmderby opened this issue 1 year ago • 1 comments

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:

  • useAuth extends regular auth core useAuth hook but adds wallet context.
  • CrossmintAuthProvider extends regular AuthProvider from core but adds context provider and createWallet function.

Test plan

Nextjs demo flow (part 1) all works as expected using this PR's changes

jmderby avatar Aug 13 '24 01:08 jmderby

⚠️ 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

changeset-bot[bot] avatar Aug 13 '24 01:08 changeset-bot[bot]

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

jmderby avatar Aug 15 '24 23:08 jmderby