Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@picahq/authkit

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@picahq/authkit

Frontend bindings for Pica AuthKit

Source
npmnpm
Version
1.0.8
Version published
Weekly downloads
622
-14.44%
Maintainers
5
Weekly downloads
 
Created
Source

AuthKit

npm version

AuthKit is a pre-built, embeddable authentication UI that makes it easy for your users to securely connect their third-party accounts (Gmail, Slack, Salesforce, QuickBooks, etc.) directly within your application. Think of it as "Plaid for integrations."

AuthKit

Fully compatible with popular frameworks such as React, Next.js, Vue, Svelte, and more.

Full documentation: https://docs.picaos.com/authkit

Setup guide: https://docs.picaos.com/authkit/setup

Manage AuthKit: https://docs.picaos.com/authkit/management

Demo app: https://github.com/picahq/authkit-demo

Install

With npm:

npm i @picahq/authkit

With yarn:

yarn add @picahq/authkit

Using the AuthKit component

You'll want to replace the token URL with your token endpoint URL, which can be securely generated from your backend using Pica's AuthKit token generator package for the language you're using.

import { useAuthKit } from "@picahq/authkit";

const { open } = useAuthKit({
  token: {
    url: "https://api.your-company-name.com/authkit-token",
    headers: {},
  },
  onSuccess: (connection) => {},
  onError: (error) => {},
  onClose: () => {},
});

Backend Token Generation

To enable AuthKit connections, set up a backend endpoint that securely generates an AuthKit token for each authenticated user. For setup details and example code in multiple languages, see the Backend Setup Guide.

Diagram

sequenceDiagram
    participant User
    participant YourApp as Your Application
    participant YourBackend as Your Backend
    participant Pica as Pica AuthKit
    participant Integration as Third-party Integration

    User->>YourApp: Clicks "Connect Integration"
    YourApp->>Pica: Open AuthKit modal
    Pica->>YourBackend: Request AuthKit token
    YourBackend->>Pica: Generate token with user identity
    Pica->>Pica: Display integrations list
    User->>Pica: Select integration & authenticate
    Pica->>Integration: OAuth handshake
    Integration->>Pica: Access token
    Pica->>Pica: Store encrypted credentials
    Pica->>YourApp: Return connection details
    YourApp->>User: Connection successful!

Demo

You can see a demo of the AuthKit component in the demo project.

License

This project is licensed under the GPL-3.0 license. See the LICENSE file for details.

Keywords

picahq

FAQs

Package last updated on 04 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts