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
4
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.0
Version published
Weekly downloads
622
-14.44%
Maintainers
4
Weekly downloads
 
Created
Source

authkit

Hook and components for integrating with Pica AuthKit. Compatible with React, Next.js, Vue, Svelte and more.

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 Node library.

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

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

Full Documentation

Please refer to the official Pica AuthKit docs for a more holistic understanding of Pica AuthKit.

Keywords

picahq

FAQs

Package last updated on 16 Jan 2025

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