tkhq / sdk

Turnkey TypeScript SDK
Apache License 2.0
52 stars 14 forks source link

Taylor/wallet stamper client #409

Closed taylorjdawson closed 3 days ago

taylorjdawson commented 4 weeks ago

Summary & Motivation

Changes

@turnkey/wallet-stamper

WalletStamper

@turnkey/sdk-browser

TurnkeyWalletClient
AuthClient (new enum)
TurnkeyBrowserClient, TurnkeyIframeClient, TurnkeyPasskeyClient, TurnkeyWalletClient
UserSession interface

This is the new UserSession object which gets stored in local storage:

export interface User {
  userId: string;
  username: string;
  organization: {
    organizationId: string;
    organizationName: string;
  };
  session:
    | {
        read?: ReadOnlySession;
        write?: ReadWriteSession;
        authenticatedClient: AuthClient;
      }
    | undefined;
}
StorageKeys enum
login and loginWithReadWriteSession methods

How I Tested These Changes

Did you add a changeset?

If updating one of our packages, you'll likely need to add a changeset to your PR. To do so, run pnpm changeset. pnpm changeset will generate a file where you should write a human friendly message about the changes. Note how this (example) includes the package name (should be auto added by the command) along with the type of semver change (major.minor.patch) (which you should set).

These changes will be used at release time to determine what packages to publish and how to bump their version. For more context see this comment.

codesandbox-ci[bot] commented 4 weeks ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

socket-security[bot] commented 4 weeks ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@changesets/cli@2.27.9 Transitive: environment, eval, filesystem, shell, unsafe +102 16 MB changesets-release-bot
npm/usehooks-ts@3.1.0 None +1 265 kB junscuzzy
npm/viem@2.21.35 Transitive: environment, filesystem, network +25 23.8 MB awkweb, jmoxey

🚮 Removed packages: npm/@changesets/cli@2.27.5, npm/viem@2.18.8, npm/viem@2.21.29

View full report↗︎