JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 79812
  • Score
    100M100P100Q246783F
  • License Apache-2.0

Turnkey SDK Types

Package Exports

  • @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,
    ...
  });
}