new TurnkeyIframeClient(Defined in: sdk-browser/src/__clients__/browser-clients.ts:865config
):TurnkeyIframeClient
TurnkeySDKClientConfig
TurnkeyIframeClient
TurnkeyBrowserClient
.constructor
Defined in: sdk-browser/src/__clients__/base-client.ts:5optional
authClient:AuthClient
TurnkeyBrowserClient
.authClient
iframePublicKey:Defined in: sdk-browser/src/__clients__/browser-clients.ts:863null
|string
addUserAuth(Defined in: sdk-browser/src/__clients__/browser-clients.ts:541 Adds or updates authentication factors for an end user. This function allows selectively adding:params
):Promise
<any
[]>
AddUserAuthParams
A structured object containing all the addition/update parameters
Promise
<any
[]>
A promise that resolves to an array of results from each addition or update
TurnkeyBrowserClient
.addUserAuth
clearEmbeddedKey():Defined in: sdk-browser/src/__clients__/browser-clients.ts:924Promise
<null
>
Promise
<null
>
deleteUserAuth(Defined in: sdk-browser/src/__clients__/browser-clients.ts:477 Removes authentication factors from an end user. This function allows selectively removing:params
):Promise
<any
[]>
DeleteUserAuthParams
A structured object containing all the removal parameters
Promise
<any
[]>
A promise that resolves to an array of results from each removal operation
TurnkeyBrowserClient
.deleteUserAuth
extractKeyEncryptedBundle():Defined in: sdk-browser/src/__clients__/browser-clients.ts:916Promise
<string
>
Promise
<string
>
extractWalletEncryptedBundle():Defined in: sdk-browser/src/__clients__/browser-clients.ts:912Promise
<string
>
Promise
<string
>
getEmbeddedPublicKey():Defined in: sdk-browser/src/__clients__/browser-clients.ts:920Promise
<null
|string
>
Promise
<null
| string
>
initEmbeddedKey():Defined in: sdk-browser/src/__clients__/browser-clients.ts:928Promise
<null
|string
>
Promise
<null
| string
>
injectCredentialBundle(Defined in: sdk-browser/src/__clients__/browser-clients.ts:870credentialBundle
):Promise
<boolean
>
string
Promise
<boolean
>
injectImportBundle(Defined in: sdk-browser/src/__clients__/browser-clients.ts:900bundle
,organizationId
,userId
):Promise
<boolean
>
string
string
string
Promise
<boolean
>
injectKeyExportBundle(Defined in: sdk-browser/src/__clients__/browser-clients.ts:888credentialBundle
,organizationId
,keyFormat
?):Promise
<boolean
>
string
string
KeyFormat
Promise
<boolean
>
injectWalletExportBundle(Defined in: sdk-browser/src/__clients__/browser-clients.ts:878credentialBundle
,organizationId
):Promise
<boolean
>
string
string
Promise
<boolean
>
login(Defined in: sdk-browser/src/__clients__/browser-clients.ts:110config
?):Promise
<object
&object
>
string
Promise
<object
& object
>
TurnkeyBrowserClient
.login
loginWithAuthBundle(Defined in: sdk-browser/src/__clients__/browser-clients.ts:433 Logs in with an existing auth bundle. this bundle enables both read and write requests.credentialBundle
,expirationSeconds
):Promise
<boolean
>
string
string
= DEFAULT_SESSION_EXPIRATION_IN_SECONDS
Promise
<boolean
>
TurnkeyBrowserClient
.loginWithAuthBundle
loginWithBundle(Defined in: sdk-browser/src/__clients__/browser-clients.ts:206 Log in with a bundle. This method uses a bundle sent to the end user email To be used in conjunction with anparams
):Promise
<void
>
iframeStamper
.
LoginWithBundleParams
Promise
<void
>
TurnkeyBrowserClient
.loginWithBundle
loginWithPasskey(Defined in: sdk-browser/src/__clients__/browser-clients.ts:262 Log in with a passkey. To be used in conjunction with aparams
):Promise
<void
>
passkeyStamper
LoginWithPasskeyParams
Promise
<void
>
TurnkeyBrowserClient
.loginWithPasskey
loginWithReadWriteSession(Defined in: sdk-browser/src/__clients__/browser-clients.ts:396 Creates a read-write session. This method infers the current user’s organization ID and target userId. To be used in conjunction with antargetEmbeddedKey
,expirationSeconds
,userId
?):Promise
<object
&object
>
iframeStamper
: the resulting session’s credential bundle can be
injected into an iframeStamper to create a session that enables both read and write requests.
string
string
= DEFAULT_SESSION_EXPIRATION_IN_SECONDS
string
Promise
<object
& object
>
TurnkeyBrowserClient
.loginWithReadWriteSession
loginWithSession(Defined in: sdk-browser/src/__clients__/browser-clients.ts:239 Log in with a session object. This method uses a session object from server actions and stores it and the active client in local storage To be used in conjunction with ansession
):Promise
<void
>
iframeStamper
.
Session
Promise
<void
>
TurnkeyBrowserClient
.loginWithSession
loginWithWallet(Defined in: sdk-browser/src/__clients__/browser-clients.ts:329 Log in with a browser wallet.params
):Promise
<void
>
LoginWithWalletParams
Promise
<void
>
TurnkeyBrowserClient
.loginWithWallet
refreshSession(Defined in: sdk-browser/src/__clients__/browser-clients.ts:138 Attempts to refresh an existing Session. This method infers the current user’s organization ID and target userId. This will use a passkeyStamper forparams
):Promise
<void
>
READ_ONLY
sessions or an iframeStamper
for READ_WRITE
sessions.
RefreshSessionParams
Promise
<void
>
TurnkeyBrowserClient
.refreshSession
updateUserAuth(Defined in: sdk-browser/src/__clients__/browser-clients.ts:605 Comprehensive authentication update for an end user. Combines add/update and delete operations into a single call. The behavior is driven by whether values are set to:params
):Promise
<boolean
>
null
or an array of IDs (to remove)UpdateUserAuthParams
A structured object containing all the update parameters
Promise
<boolean
>
A promise that resolves to a boolean indicating overall success
TurnkeyBrowserClient
.updateUserAuth