5f3dd98
, 7625df0
, 878e039
]:
039602a
]:
0dd3fc3
]:
a38a6e3
Author @amircheikh - Added optional socialLinking
boolean to the authConfig
. If true, this will enable social linking for new Google <-> Gmail users. For more information on social linking, visit our docs.5afbe51
, 10ee5c5
, a38a6e3
, 40c4035
, 593de2d
]:
27fe590
Author @turnekybc - Update @turnkey/sdk-types readme and install dependency in packages with common types
27fe590
]:
c6754f2
Thanks @moe-dev! - Patch releases fixes Google Oauth edge case in the Auth Component where logins fail due to indexedDbPublic key not being available yetindexedDbClient
within the useTurnkey
hook and updating the Auth
component to leverage IndexedDB for secure, persistent client-side authentication.
indexedDbClient
for all authentication flows in the Auth
component.useTurnkey
hook now includes direct access to the new indexedDbClient
.iframeClient
for authentication flows is now deprecated. All new integrations should migrate to the IndexedDB-based authentication provided by indexedDbClient
.07dfd33
, e8a5f1b
]:
openOAuthInPage
to the authConfig
. This makes the Google, Apple and Facebook login pages replace the current URL, rather than opening in a popup.
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