5f3dd98
Author @amircheikh - Synced with mono 2025.6.10 to include the following endpoints:
update_user_email
: Update a User’s email in an existing Organization
update_user_name
: Update a User’s name in an existing Organization
update_user_phone_number
: Update a User’s phone number in an existing Organization
7625df0
Author @moeodeh3 - Introduces an optional runtimeOverride
parameter that allows the ability to explicitly specify the crypto environment: "browser"
, "node"
, or "purejs"
.
5f3dd98
, 7625df0
]:
be0a621
]:
a38a6e3
Author @amircheikh - Exposed createOauthProviders
and getUsers
as server actions. These are used for social linking within @turnkey/sdk-react
.593de2d
Thanks @moe-dev! - Update to endpoints as per mono v2025.5.7. Add V5 TON address format generation. Non breaking
5afbe51
, 593de2d
]:
27fe590
Author @turnekybc - Update @turnkey/sdk-types readme and install dependency in packages with common types
sendOtp
: No longer requires a suborganization ID; OTPs can now be sent directly under a parent organization’s context to any email or phone number.
verifyOtp
: Now returns a verificationToken
, which is required for creating sessions via the new otpLogin
action.
otpLogin
: Creates a session using a previously obtained verificationToken
. Returns a session JWT.
oauthLogin
: Authenticates using an OIDC token obtained from a third-party provider (e.g., Google, Apple, Facebook). Returns a session JWT.
e8a5f1b
Author @andrewkmin - Remove unused Next.js dependency
"use server"
directive in actions.ts
is to be used specifically with Next, removing it from this package (@turnkey/sdk-server
) is fine, though applications using this package will need Next.js07dfd33
]:
INIT_OTP_AUTH_V2
activity. The difference between it and INIT_OTP_AUTH
is that it can now accept alphanumeric
and otpLength
for selecting crockford bech32 alphanumeric codes and the length of those codes. By default alphanumeric = true, otpLength = 9
sendFromEmailSenderName
to INIT_OTP_AUTH
, INIT_OTP_AUTH_V2
, EMAIL_AUTH
and EMAIL_AUTH_V2
. This is an optional custom sender name for use with sendFromEmailAddress; if left empty, will default to ‘Notifications’.
./__types__/base.ts
TurnkeyBrowserClient
refereshSession()
now consumes a RefreshSessionParams parameterloginWithBundle()
now consumes a LoginWithBundleParams parameterloginWithPasskey()
now consumes a LoginWithPasskeyParams parameterloginWithWallet()
now consumes a LoginWithWalletParams parameterAuth.tsx
passkeyClient?.loginWithPasskey()
to implement new method signaturewalletClient?.loginWithWallet()
to implement new method signature./__types__/base.ts
TurnkeyBaseClient
class which extends TurnkeySDKClientBase
TurnkeyBrowserClient
, TurnkeyIframeClient
, TurnkeyPasskeyClient
, and TurnkeyWalletClient
all extend TurnkeyBaseClient
refreshSession
- attempts to refresh an existing, active session and will extend the session expiry using the expirationSeconds
parameterSession
, which can be either read-only or read-write, created via a server action and attempts to authenticate the userTurnkeyContext
to use new .getSession()
method to check if there is an active sessionOTPVerification
component no longer receives authIframeClient
or onValidateSuccess
propssendCredential
server actionSessionType
enum
READ_ONLY
& READ_WRITE
package.json
peerDependencies
to dependencies
"@turnkey/http": "workspace:*"
"@turnkey/sdk-browser": "workspace:*"
devDependencies
to dependencies
"@turnkey/api-key-stamper": "workspace:*"
activityPoller
parameter for configuring polling behavior