@turnkey/sdk-types
v0.11.0
Published
Turnkey SDK Types
Keywords
Readme
@turnkey/sdk-types
Getting started
A package for common and reusable Turnkey Types which can be used for consistent typing across packages.
Installation
npm
$ npm install @turnkey/sdk-typesYarn
$ yarn add @turnkey/sdk-typespnpm
$ pnpm add @turnkey/sdk-typesUsage
import { useTurnkey } from "@turnkey/sdk-react";
import { SessionType } from "@turnkey/sdk-types";
export default function AuthComponent() {
const { passkeyClient } = useTurnkey();
await passkeyClient?.loginWithPasskey({
sessionType: SessionType.READ_WRITE,
...
});
}