The @turnkey/http
package is a fully-typed lower-level HTTP client for developers integrating with Turnkey.
To get started install the @turnkey/http
client.
Create a new client for use in your JavaScript/Typescript applications.
You can initialize a new TurnkeyClient
using the TurnkeyClient
constructor. The TurnkeyClient
serves as your entry point to interact with the Turnkey API.
An object containing configuration settings for the client.
The base URL for the Turnkey API. Note: An error Missing base URL. Please verify env vars.
will be thrown if a value is not provided.
An instance of a stamper class (e.g. ApiKeyStamper
) used to create signatures for authenticating API requests.
Currently Turnkey provides 3 stampers:
@turnkey/webauthn-stamper
@turnkey/api-key-stamper
@turnkey/iframe-stamper
.You can also implement the TStamper interface yourself. For more information on implementing a custom stamper checkout the API Design docs.
THttpConfig
TStamper
The @turnkey/http
package is a fully-typed lower-level HTTP client for developers integrating with Turnkey.
To get started install the @turnkey/http
client.
Create a new client for use in your JavaScript/Typescript applications.
You can initialize a new TurnkeyClient
using the TurnkeyClient
constructor. The TurnkeyClient
serves as your entry point to interact with the Turnkey API.
An object containing configuration settings for the client.
The base URL for the Turnkey API. Note: An error Missing base URL. Please verify env vars.
will be thrown if a value is not provided.
An instance of a stamper class (e.g. ApiKeyStamper
) used to create signatures for authenticating API requests.
Currently Turnkey provides 3 stampers:
@turnkey/webauthn-stamper
@turnkey/api-key-stamper
@turnkey/iframe-stamper
.You can also implement the TStamper interface yourself. For more information on implementing a custom stamper checkout the API Design docs.
THttpConfig
TStamper