@turnkey/api-key-stamper
Version:
API key stamper for @turnkey/http
27 lines (19 loc) • 657 B
Markdown
title: "API Key Stamper"
# @turnkey/api-key-stamper
[](https://www.npmjs.com/package/@turnkey/api-key-stamper)
This package contains functions to stamp a Turnkey request. It is meant to be used with [`@turnkey/http`](https://www.npmjs.com/package/@turnkey/http)
Usage:
```ts
import { ApiKeyStamper } from "@turnkey/api-key-stamper";
import { TurnkeyClient } from "@turnkey/http";
const stamper = new ApiKeyStamper({
apiPublicKey: "...",
apiPrivateKey: "...",
});
const httpClient = new TurnkeyClient(
{ baseUrl: "https://api.turnkey.com" },
stamper,
);
```