AI Installer & CLI – AuthKit – WorkOS Docs

AuthKit

AuthKit is a toolkit designed to streamline authentication processes for applications. It provides developers with the necessary functionalities to manage user authentication and authorization in a scalable and secure manner.

Features

Getting Started

To get started with AuthKit, you need to follow these steps:

  1. Install AuthKit: Use the provided CLI to add AuthKit to your project.

    npm install @workos/authkit
    
  2. Initialize the SDK: Set up the AuthKit SDK with your API key.

    const AuthKit = require('@workos/authkit');
    const authkit = new AuthKit({apiKey: 'YOUR_API_KEY'});
    
  3. Authenticate Users: Implement the authentication flow using AuthKit's methods.

API Reference

For detailed API reference, visit the API reference.

Feedback

We welcome your feedback! Please share your thoughts on how we can improve AuthKit.