tkhq / sdk

Turnkey TypeScript SDK
Apache License 2.0
48 stars 13 forks source link

Exposes the storage APIs for the sdk-browser #362

Closed taylorjdawson closed 6 days ago

taylorjdawson commented 6 days ago

Summary & Motivation

There are times where a developers may want to manage the local storage of the users, sessions and auth bundles themselves. When implementing the demo-embeded-wallet I found that I needed to store the current session after creating a new sub organization. Without this, you need to call one of the login functions such as passkeyClient.login() in order to save the session to local storage. However, this would require an additional passkey tap.

This would allow for creating a session for a new sub org using the parent org and then saving the session in local storage.

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 6 days 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.