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)
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:
iframeStamper.iframePublicKey
exposed by @turnkey/iframe-stamper
’s publicKey()
method.
passkeyConfig
of interface PasskeyConfig
to the <Auth>
component
./__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:*"
useTurnkey
hook now returns the new walletClient
, used for authenticating requests via wallet signatures
client
object returned from the useTurnkey
hook. This is the authenticated client. It will be null if the user is not authenticated. Example:
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