@turnkey/sdk-types

v0.12.0
  • Types
  • ESM
  • CJS
License
Apache-2.0
Deps
0
Install Size
909.7 kB/-
Vulns
0
Published

Get started

$npm install @turnkey/sdk-types
$pnpm add @turnkey/sdk-types
$yarn add @turnkey/sdk-types
$bun add @turnkey/sdk-types
$deno add npm:@turnkey/sdk-types
$vlt install @turnkey/sdk-types

Readme

@turnkey/sdk-types

npm

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-types
Yarn
$ yarn add @turnkey/sdk-types
pnpm
$ pnpm add @turnkey/sdk-types
Usage
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,
    ...
  });
}

Weekly DownloadsAcross all versions

Node.js
>=18.0.0

Versions

0.12.0
latest