5f3dd98
, 7625df0
, 878e039
]:
be0a621
]:
40c4035
, 10ee5c5
, 593de2d
]:
59f8941
Author @moeodeh3 - Added support for React 19
Renamed sessionKey
parameter to storageKey
in createEmbeddedKey
saveEmbeddedKey
and getEmbeddedKey
.
Added optional embeddedStorageKey
parameter to createSession
. This allows for retrieval of the embedded key from a custom location in secure storage.
77611c8
Author @amircheikh - Added onSessionEmpty
. A callback function that runs when there is no active session on app launch.
07dfd33
]:
refreshSession
that could throw:
TurnkeyReactNativeError: Embedded key not found when refreshing the session
generateP256KeyPair
refreshSession
now accepts a single optional parameter objectStorageKeys.RefreshEmbeddedKey
is now deprecated and no longer used during session refreshcreateSessionFromEmbeddedKey
function. This allows creation of a session using a compressed embedded key stored by calling createEmbeddedKey
. You may also optionally pass in an embedded key created seperately. Utilizing these two functions with a createSuborg
api call allows for a ‘1 tap’ passkey sign up flow (example).
Added optional isCompressed
boolean field to the createEmbeddedKey
function. This field is necessary for calling createSessionFromEmbeddedKey
.
handleGoogleOAuth
launches an InAppBrowser to initiate the OAuth flow using your client ID, nonce, and app scheme. After a successful login, it extracts the oidcToken
from the redirect URL and calls your onSuccess
callback with the token.
@turnkey/viem
setSelectedSession({ sessionKey: <key> })
.client
, user
, and session
state.updateUser
, createWallet
, and signRawPayload
now apply to the selected session.