Our React, JavaScript, & Swift SDKs are live

As a developer, creating your own non-custodial wallet infrastructure from scratch is as difficult as it gets. Turnkey’s mission is to make this process as smooth as possible, so that you can focus on building your product, and be confident in your application’s wallet architecture from day one.

Part of making the Turnkey product suite more developer-friendly includes leveling up our client SDKs. Over the past couple of weeks, we’ve repackaged our existing client libraries into a few simple, consolidated SDKs, and introduced support for React Native and Swift: you can now use these new libraries to integrate a number of Turnkey’s composable primitives in an intuitive way!


React SDK

Turnkey’s revamped React SDK makes it much simpler for developers to build embedded wallet flows with Turnkey. We’ve added powerful abstractions so that it’s easier to integrate wallets for your end users.

For example, here’s how you would create a non-custodial wallet on behalf of a user with a passkey credential:

  1. Initialize the passkey client by importing @turnkey/sdk-browser

  2. Create a local passkey credential, which will prompt a user natively in their browser to create a passkey

  3. Pass the credentials to the backend, where you can call createSubOrganization

For more details, you can check out our Quickstart guide.

Browser + Server

Our new sdk-browser and sdk-server libraries abstract away low level details, to reduce the lines of code you need to interact with Turnkey. We’ve also included convenience methods that encapsulate common actions such as creating a new passkey, initiating a read-only session, and working with Email Auth, Import, and Export. Implementation details can be found here - we’ve also set up an updated demo embedded wallet for your convenience.

These improvements are further built upon in our new React library, which offers further abstractions. Here’s an example where we create a new embedded wallet for a user:

Before:

After:

React Native

We’ve also added a brand new React Native passkey stamper. This enables developers to authenticate Turnkey requests using passkeys within React Native applications. You can find an example React Native application that uses this new package here!

Additionally, we’ve added support for email authentication in React Native without having to rely on an iframe. You can check out an example here. And for the curious, we’ve published a library that includes cryptographic primitives for HPKE decryption, all without relying on WebCrypto.

Swift SDK

Our brand new Swift SDK provides a robust set of functionalities to interact with the Turnkey API, and is also currently live here. The SDK makes it seamless for any iOS developers wanting to build applications with Turnkey.

After installation, developers can utilize the Swift SDK to initialize the TurnkeyClient with API keys or passkeys. You can find an example iOS application built with the Turnkey Swift SDK here.


Start building on Turnkey

Ready to get started with Turnkey, or have feedback on any of our new SDKs? Check out our integration guide (it’s free to start), join our community support Slack, or reach out to hello@turnkey.com to chat with us directly!

Website | Twitter | LinkedIn | Farcaster

Subscribe to Turnkey
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.