Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 522 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 522 Bytes

AuthKit JavaScript Library

This library can be used to interface with AuthKit in a client-side JavaScript application.

Installation

npm install @workos-inc/authkit-js

Usage

import { createClient } from "@workos-inc/authkit-js";
const authkit = await createClient("your-client-id");
const user = authkit.getUser();
const accessToken = await authkit.getAccessToken();

Impersonation support is coming soon

Impersonation is not currently supported in authkit-js. We are targeting EOY 2024.