@turnkey/sdk-react

4.2.2

Patch Changes

  • 7755413: Ensure that iframe has an embedded key

4.2.1

Patch Changes

  • Updated dependencies [7b72769]
    • @turnkey/sdk-server@3.0.1

4.2.0

Minor Changes

  • de59993: Update default country codes to supported deliveries:

    USA, Canada, France, Czech Republic, Finland, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia (with a 1 min delay), Lithuania, Luxembourg, Malta, Mexico, Moldova, Montenegro, Netherlands, Norway, Poland, Portugal, Romania, Serbia, Slovenia, Spain, Sweden, Switzerland.

  • d1083bd: Add otpConfig param to Auth component that allows you to pass in alphanumeric and otpLength default for the Auth component is still false, 6 respectively (non breaking)

Patch Changes

  • Updated dependencies [e501690]
  • Updated dependencies [d1083bd]
    • @turnkey/sdk-browser@4.0.0
    • @turnkey/sdk-server@3.0.0
    • @turnkey/crypto@2.3.1
    • @turnkey/wallet-stamper@1.0.3

4.1.3

Patch Changes

  • Updated dependencies [bf87774]

    • @turnkey/sdk-browser@3.1.0

      • Expose getEmbeddedPublicKey() via TurnkeyIframeClient. This can be used to fetch the live public key of the target embedded key living within an iframe.

        Usage may look like the following:

        import { useTurnkey } from "@turnkey/sdk-react";
        
        ...
        
        const { authIframeClient } = useTurnkey();
        
        const publicKey = await authIframeClient!.getEmbeddedPublicKey();
        

        Functionally, this can be useful for scenarios where the developer would like to verify whether an iframe has a live embedded key within it. This contrasts from the static iframeStamper.iframePublicKey exposed by @turnkey/iframe-stamper’s publicKey() method.

4.1.2

Patch Changes

  • Updated dependencies [5ec5187]
    • @turnkey/sdk-browser@3.0.1
    • @turnkey/sdk-server@2.6.1

4.1.1

Patch Changes

  • 2b8de45: Add passkeyConfig to EWK

    You can do this by passing optional passkeyConfig of interface PasskeyConfig to the <Auth> component

    export interface PasskeyConfig {
      displayName?: string;
      name?: string;
    }
    

4.1.0

Minor Changes

Patch Changes

  • c9ae537: Update nextJs to >= 15.2.3 as per github advisory: https://github.com/advisories/GHSA-f82v-jwr5-mffw

    For Next.js 15.x, this issue is fixed in 15.2.3 For Next.js 14.x, this issue is fixed in 14.2.25 For Next.js 13.x, this issue is fixed in 13.5.9 For Next.js 12.x, this issue is fixed in 12.3.5

  • Updated dependencies [0e4e959]

  • Updated dependencies [856f449]

  • Updated dependencies [c9ae537]

  • Updated dependencies [d4ce5fa]

  • Updated dependencies [ecdb29a]

  • Updated dependencies [72890f5]

    • @turnkey/sdk-browser@3.0.0
    • @turnkey/sdk-server@2.6.0
    • @turnkey/crypto@2.3.1
    • @turnkey/wallet-stamper@1.0.3

4.0.0

Major Changes

  • 93540e7: ## Major Package Updates

    @turnkey/sdk-browser

    • create abstract TurnkeyBaseClient class which extends TurnkeySDKClientBase
      • TurnkeyBrowserClient, TurnkeyIframeClient, TurnkeyPasskeyClient, and TurnkeyWalletClient all extend TurnkeyBaseClient
    • TurnkeyBrowserClient
      • Session Management
        • refreshSession - attempts to refresh an existing, active session and will extend the session expiry using the expirationSeconds parameter
        • loginWithBundle - authenticate a user via a credential bundle and creates a read-write session
        • loginWithPasskey - attempts to authenticate a user via passkey and create a read-only or read-write session
        • loginWithSession - takes a Session, which can be either read-only or read-write, created via a server action and attempts to authenticate the user
    • TurnkeyPasskeyClient
      • Session Management
        • createPasskeySession - leverages passkey authentication to create a read-write session. Once authenticated, the user will not be prompted for additional passkey taps.

    @turnkey/sdk-react

    • update TurnkeyContext to use new .getSession() method to check if there is an active session
    • OTPVerification component no longer receives authIframeClient or onValidateSuccess props

    Minor Package Updates

    @turnkey/sdk-server

    • expose sendCredential server action
    • add SessionType enum
      • READ_ONLY & READ_WRITE

    @turnkey/eip-1193-provider

    • update dependencies in package.json
      • moved from peerDependencies to dependencies
        • "@turnkey/http": "workspace:*"
        • "@turnkey/sdk-browser": "workspace:*"
      • moved from devDependencies to dependencies
        • "@turnkey/api-key-stamper": "workspace:*"
    • specify TypeScript version ^5.1.5

Minor Changes

  • 9147962: add dangerouslyOverrideIframeKeyTtl option to override iframe embedded key TTL (for longer lived read/write sessions)

Patch Changes

  • fdb8bf0: Add loading indicators for EWK. Exposed email customization to EWK.
  • Updated dependencies [93540e7]
  • Updated dependencies [fdb8bf0]
  • Updated dependencies [9147962]
    • @turnkey/sdk-browser@2.0.0
    • @turnkey/sdk-server@2.5.0
    • @turnkey/crypto@2.3.1

3.1.0

Minor Changes

  • 9317588: Adds wallet as an authentication option in the Embedded Wallet Kit components for sdk-react

Patch Changes

  • Updated dependencies [233ae71]
  • Updated dependencies [9317588]
    • @turnkey/sdk-browser@1.16.0
    • @turnkey/sdk-server@2.4.0
    • @turnkey/crypto@2.3.1

3.0.6

Patch Changes

  • Updated dependencies [56a307e]
    • @turnkey/sdk-browser@1.15.0
    • @turnkey/sdk-server@2.3.0
    • @turnkey/crypto@2.3.1
    • @turnkey/wallet-stamper@1.0.3

3.0.5

Patch Changes

  • cdf2e6e: Fix issue in EWK preventing sign up flow

3.0.4

Patch Changes

  • 9256e75: Fix apple login issue on mobile web browser
  • bfc833f: Add getOrCreateSuborg server action
  • Updated dependencies [3c44c4a]
  • Updated dependencies [bfc833f]
    • @turnkey/sdk-browser@1.14.0
    • @turnkey/sdk-server@2.2.0
    • @turnkey/crypto@2.3.1
    • @turnkey/wallet-stamper@1.0.3

3.0.3

Patch Changes

  • 5f6de98: Fix phone number validation issue causing issues with non +1 country codes
  • Updated dependencies [69d2571]
  • Updated dependencies [57f9cb0]
    • @turnkey/sdk-browser@1.13.0
    • @turnkey/sdk-server@2.1.0
    • @turnkey/crypto@2.3.1
    • @turnkey/wallet-stamper@1.0.3

3.0.2

Patch Changes

  • faa757c: Patch EWK custom session lengths - previously not working as intended (defaulted to 15 minute sessions only) and fix the following useLocalStorage issue when compiling: [Error: useLocalStorage is a client-only hook]
  • a8bd73b: Fix issue with EWK where suborgs were being created on failed fetches

3.0.1

Patch Changes

  • cb8cf7e: Add all supported country codes to phone input field
  • 2eb2179: Fix bundling issue with sdk-react
  • Updated dependencies [755833b]
  • Updated dependencies [2bc0046]
    • @turnkey/sdk-browser@1.12.1
    • @turnkey/sdk-server@2.0.1
    • @turnkey/crypto@2.3.1
    • @turnkey/wallet-stamper@1.0.3

3.0.0

Major Changes

  • 1ebd4e2: Remove references to server actions and import from sdk-server

Patch Changes

  • Updated dependencies [6695af2]
  • Updated dependencies [1ebd4e2]
    • @turnkey/sdk-browser@1.12.0
    • @turnkey/sdk-server@2.0.0
    • @turnkey/crypto@2.3.0
    • @turnkey/wallet-stamper@1.0.2

2.0.4

Patch Changes

  • 99ebe78: Fixed MUI components not inheriting fonts.
  • Updated dependencies [053fbfb]
    • @turnkey/sdk-browser@1.11.2
    • @turnkey/sdk-server@1.7.3
    • @turnkey/crypto@2.3.0
    • @turnkey/wallet-stamper@1.0.2

2.0.3

Patch Changes

  • d43c52c: Add session length customization, wallet generation customization, enter to continue, more css customization and css fixes (icon sizing issues, etc)
  • 5419d49: fix css bundling bug
  • Updated dependencies [328d6aa]
  • Updated dependencies [b90947e]
  • Updated dependencies [2d5977b]
  • Updated dependencies [fad7c37]
    • @turnkey/sdk-browser@1.11.1
    • @turnkey/sdk-server@1.7.2
    • @turnkey/crypto@2.3.0
    • @turnkey/wallet-stamper@1.0.2

2.0.2

Patch Changes

  • eaf3e20: Fix css related build issues with React 19+ & NextJs 15+

2.0.1

Patch Changes

  • 0da96aa: Add readme to react sdk

2.0.0

Major Changes

  • 95717d7: New Feature: UI components - Auth, Export, Import. Leverages server and client directives on NextJS 13+ to abstract functionalities away from the developer

Patch Changes

  • c8330fa: Add a user identifier for sms rate limiting
  • 12d5aaa: Update TurnkeySDKBrowserConfig type with an optional iframeUrl field. The TurnkeyContext provider will check for an iframeUrl otherwise it will fallback to the default.
  • Updated dependencies [7988bc1]
  • Updated dependencies [c895c8f]
  • Updated dependencies [538d4fc]
  • Updated dependencies [12d5aaa]
    • @turnkey/sdk-browser@1.11.0
    • @turnkey/wallet-stamper@1.0.2
    • @turnkey/sdk-server@1.7.1
    • @turnkey/crypto@2.3.0

1.1.2

Patch Changes

  • @turnkey/sdk-browser@1.10.2
  • @turnkey/wallet-stamper@1.0.1

1.1.1

Patch Changes

  • @turnkey/sdk-browser@1.10.1
  • @turnkey/wallet-stamper@1.0.0

1.1.0

Minor Changes

  • The useTurnkey hook now returns the new walletClient, used for authenticating requests via wallet signatures

  • Added new client object returned from the useTurnkey hook. This is the authenticated client. It will be null if the user is not authenticated. Example:

    const { client } = useTurnkey();
    

Patch Changes

  • Updated dependencies [8bea78f]
    • @turnkey/wallet-stamper@2.0.0
    • @turnkey/sdk-browser@1.10.0

1.0.14

Patch Changes

  • Updated dependencies [3dd74ac]
  • Updated dependencies [1e36edf]
  • Updated dependencies [4df8914]
  • Updated dependencies [11a9e2f]
    • @turnkey/sdk-browser@1.9.0

1.0.13

Patch Changes

  • Updated dependencies [9ebd062]
    • @turnkey/sdk-browser@1.8.0

1.0.12

Patch Changes

  • Updated dependencies [96d7f99]
    • @turnkey/sdk-browser@1.7.1

1.0.11

Patch Changes

  • Updated dependencies [ff059d5]
    • @turnkey/sdk-browser@1.7.0

1.0.10

Patch Changes

  • Updated dependencies [c988ed0]
    • @turnkey/sdk-browser@1.6.0

1.0.9

Patch Changes

  • Updated dependencies [1813ed5]
    • @turnkey/sdk-browser@1.5.0

1.0.8

Patch Changes

  • Updated dependencies [bab5393]
  • Updated dependencies [a16073c]
  • Updated dependencies [7e7d209]
    • @turnkey/sdk-browser@1.4.0

1.0.7

Patch Changes

  • Updated dependencies [93dee46]
    • @turnkey/sdk-browser@1.3.0

1.0.6

Patch Changes

  • Updated dependencies [e2f2e0b]
    • @turnkey/sdk-browser@1.2.4

1.0.5

Patch Changes

  • Updated dependencies
    • @turnkey/sdk-browser@1.2.3

1.0.4

Patch Changes

  • Updated dependencies
    • @turnkey/sdk-browser@1.2.2

1.0.3

Patch Changes

  • f17a229: Update to oauth related endpoints to drop jwks uri from oauth providers
  • Updated dependencies [f17a229]
    • @turnkey/sdk-browser@1.2.1

1.0.2

Patch Changes

  • Updated dependencies
    • @turnkey/sdk-browser@1.2.0

1.0.1

Patch Changes

  • Updated dependencies
    • @turnkey/sdk-browser@1.1.0

1.0.0

Major Changes

  • Stable Release: Add Oauth integration. New suborg creation version will now require an oauthProviders field under root users.

Patch Changes

  • Updated dependencies
    • @turnkey/sdk-browser@1.0.0

0.4.1

Patch Changes

  • @turnkey/sdk-browser@0.4.1

0.4.0

Minor Changes

  • e4b29da: Deprecate the getAuthBundle() path for passkey sessions and replace it with getReadWriteSession() to store authBundles with their expirationTimestamps so applications can better manually manage active writing sessions

Patch Changes

  • Updated dependencies [e4b29da]
    • @turnkey/sdk-browser@0.4.0

0.3.0

Minor Changes

  • d409d81: Add support for Passkey Sessions

Patch Changes

  • Updated dependencies [d409d81]
    • @turnkey/sdk-browser@0.3.0

0.2.1

Patch Changes

  • @turnkey/sdk-browser@0.2.1

0.2.0

Minor Changes

  • updated syntax

Patch Changes

  • Updated dependencies
    • @turnkey/sdk-browser@0.2.0

0.1.0

Minor Changes

  • Ready for 0.1.0

Patch Changes

  • Updated dependencies
    • @turnkey/sdk-browser@0.1.0

0.0.1

Initial (experimental) release! This is an alpha release and subject to change.