Skip to content

Latest commit

 

History

History
498 lines (317 loc) · 13.2 KB

CHANGELOG.md

File metadata and controls

498 lines (317 loc) · 13.2 KB

@turnkey/sdk-browser

3.0.1

Patch Changes

  • 5ec5187: Fix initOtpAuth bug with improper version result (to be updated to V2 following release r2025.3.8)

3.0.0

Major 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

Minor Changes

  • ecdb29a: Update API as per mono v2025.3.2 - Add CREATE_USERS_V3

Patch Changes

  • 0e4e959: bump update policy activity to v2
  • 856f449: update TurnkeyBrowserClient.login() to align with other functions like loginWithPasskey() and loginWithWallet()
  • d4ce5fa: fix unexpected error when using read-only session type when calling loginWithPasskey & loginWithWallet
  • Updated dependencies [ecdb29a]

2.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

1.16.0

Minor Changes

  • 233ae71: Add updateUserAuth, addUserAuth, deleteUserAuth helper functions

Patch Changes

1.15.0

Minor Changes

  • 56a307e: Update api to mono v2025.3.0

Patch Changes

1.14.0

Minor Changes

  • 3c44c4a: Updates per mono release v2025.2.2

Patch Changes

1.13.0

Minor Changes

  • 57f9cb0: Update endpoints - surface GetWalletAccount

Patch Changes

1.12.1

Patch Changes

  • 755833b: refactor stamper out of config object and move it directly onto the client to match @turnkey/http
  • Updated dependencies [2bc0046]

1.12.0

Minor Changes

  • 6695af2: Update per mono release v2025.1.11

Patch Changes

1.11.2

Patch Changes

1.11.1

Patch Changes

  • 328d6aa: Add defaultXrpAccountAtIndex helper

  • b90947e: Update default account exports, surface WalletAccount type

  • 2d5977b: Update error messaging around api key and target public key usage

  • fad7c37: @turnkey/iframe-stamper - Implemented MessageChannel API for secure communication between the parent and iframe.

    @turnkey/sdk-browser - fixed spelling in package.json @turnkey/sdk-server - fixed spelling in package.json

  • Updated dependencies [2d5977b]

  • Updated dependencies [fad7c37]

1.11.0

Minor Changes

  • 7988bc1: Fix readWrite session to use credentialBundle and add loginWithAuthBundle to create a session when you already have a credentialBundle

Patch Changes

  • 538d4fc: Update api endpoints - NEW: User verification, SMS customization params
  • 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 [c895c8f]
  • Updated dependencies [538d4fc]

1.10.2

Patch Changes

1.10.1

Patch Changes

1.10.0

Minor Changes

TurnkeyWalletClient
  • Added new TurnkeyWalletClient to the @turnkey/sdk-browser Reason: Allows using the WalletStamper with the browser sdk
  • Added getPublicKey method to TurnkeyWalletClient Reason: Enables easy access to wallet public key for sub-organization creation and future authentication flows
  • Updated TurnkeyWalletClient to use new WalletInterface Reason: Ensures compatibility with the updated Wallet Stamper interfaces
AuthClient (new enum)
  • Introduced a new enum to track which client is authenticated (Passkey, Wallet, Iframe)
TurnkeyBrowserClient, TurnkeyIframeClient, TurnkeyPasskeyClient, TurnkeyWalletClient
  • Added a static authClient property to base TurnkeyBrowserClient to be used by the child classes to track which client was used for the initial authentication
UserSession interface
  • Added a new UserSession interface which is to be stored in local storage to track the authentication state of the user and to eliminate the need to store the write and read sessions separately.
  • Added authClient in the session object to store the authentication method used in the user's session data. Will be used in the @turnkey/sdk-react to determine which client to return.
  • Added new versioned UserSession key: "@turnkey/session/v1"
login and loginWithReadWriteSession methods
  • Updated to use the new authClient property to track and store the authentication method used during login

Patch Changes

1.9.0

Minor Changes

  • 3dd74ac: Added functionality for constructing and returning stamped requests for all packages
  • 1e36edf: Support RS256 by default when invoking createUserPasskey
  • 4df8914: Version bump corresponding to mono release v2024.10.10. More detailed changelog to follow
  • 11a9e2f: Allow override of WebauthnStamper configuration

Patch Changes

1.8.0

Minor Changes

  • 9ebd062: Release OTP functionality

Patch Changes

1.7.1

Patch Changes

1.7.0

Minor Changes

  • ff059d5: Add ability to create a read + write session

Patch Changes

1.6.0

Minor Changes

  • c988ed0: Support activity polling (e.g. for awaiting consensus)

    • [Breaking] Update the activityPoller parameter for configuring polling behavior
    • Polling continues until either a max number of retries is reached, or if the activity hits a terminal status

    The shape of the parameter has gone from:

    {
      duration: number;
      timeout: number;
    }
    

    to

    {
      intervalMs: number;
      numRetries: number;
    }
    

Patch Changes

1.5.0

Minor Changes

  • 1813ed5: Allow organizationId override for TurnkeyBrowserClient.login with an extra config argument

1.4.0

Minor Changes

  • bab5393: Add keyformat to key export bundle injection

Patch Changes

  • a16073c: Exposes storage APIs used by the sdk for managing users & sessions
  • 7e7d209: Add authenticatorAttachment option

1.3.0

Minor Changes

  • 93dee46: Add create read write session v2 which allows for user targeting directly from stamp or optional userId in intent

Patch Changes

1.2.4

Patch Changes

1.2.3

Patch Changes

  • Fix activity versioning for CREATE_SUB_ORGANIZATION (V5=>V6)

1.2.2

Patch Changes

1.2.1

Patch Changes

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

1.2.0

Minor Changes

  • Add Email Auth V2 - Optional invalidate exisiting Email Authentication API keys

Patch Changes

1.1.0

Minor Changes

  • Update to use new endpoints. Including CREATE_READ_WRITE_SESSION which allows one shot passkey sessions (returns org information and a credential bundle) and CREATE_API_KEYS_V2 which allows a curve type to be passed (SECP256K1 or P256)

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.

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

0.3.0

Minor Changes

  • d409d81: Add support for Passkey Sessions

0.2.1

Patch Changes

  • Updated dependencies [5d0bfde]
  • Updated dependencies [2f2d09a]
  • Updated dependencies [976663e]

0.2.0

Minor Changes

  • updated syntax

Patch Changes

  • Updated dependencies [5d0bfde]
  • Updated dependencies [2f2d09a]
  • Updated dependencies [976663e]

0.1.0

Minor Changes

  • Ready for 0.1.0

0.0.1

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