Skip to content

Latest commit

 

History

History
533 lines (341 loc) · 13.4 KB

CHANGELOG.md

File metadata and controls

533 lines (341 loc) · 13.4 KB

@turnkey/sdk-react

4.2.2

Patch Changes

  • 7755413: Ensure that iframe has an embedded key

4.2.1

Patch Changes

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

4.1.3

Patch Changes

  • Updated dependencies [bf87774]

    • @turnkey/[email protected]

      • 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

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

  • 72890f5: ### @turnkey/sdk-browser

    @turnkey/sdk-react

    • Auth.tsx
      • updated passkeyClient?.loginWithPasskey() to implement new method signature
      • updated walletClient?.loginWithWallet() to implement new method signature

    @turnkey/sdk-server

Patch Changes

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

3.1.0

Minor Changes

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

Patch Changes

3.0.6

Patch Changes

3.0.5

Patch Changes

  • cdf2e6e: Fix issue in EWK preventing sign up flow

3.0.4

Patch Changes

3.0.3

Patch Changes

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

3.0.0

Major Changes

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

Patch Changes

2.0.4

Patch Changes

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]

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]

1.1.2

Patch Changes

1.1.1

Patch Changes

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

1.0.14

Patch Changes

  • Updated dependencies [3dd74ac]
  • Updated dependencies [1e36edf]
  • Updated dependencies [4df8914]
  • Updated dependencies [11a9e2f]

1.0.13

Patch Changes

1.0.12

Patch Changes

1.0.11

Patch Changes

1.0.10

Patch Changes

1.0.9

Patch Changes

1.0.8

Patch Changes

  • Updated dependencies [bab5393]
  • Updated dependencies [a16073c]
  • Updated dependencies [7e7d209]

1.0.7

Patch Changes

1.0.6

Patch Changes

1.0.5

Patch Changes

1.0.4

Patch Changes

1.0.3

Patch Changes

  • f17a229: Update to oauth related endpoints to drop jwks uri from oauth providers
  • Updated dependencies [f17a229]

1.0.2

Patch Changes

1.0.1

Patch Changes

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

0.4.1

Patch Changes

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

0.3.0

Minor Changes

  • d409d81: Add support for Passkey Sessions

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

  • updated syntax

Patch Changes

0.1.0

Minor Changes

  • Ready for 0.1.0

Patch Changes

0.0.1

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