@integrationos/authkit
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

authkit

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

Install

With npm:

npm i @integrationos/authkit

With yarn:

yarn add @integrationos/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 IntegrationOS' AuthKit Node library.

import { useAuthKit } from "@integrationos/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 IntegrationOS AuthKit docs for a more holistic understanding of IntegrationOS AuthKit.

Package Sidebar

Install

npm i @integrationos/authkit

Weekly Downloads

10

Version

1.0.2

License

MIT

Unpacked Size

24 kB

Total Files

12

Last publish

Collaborators

  • buildable.paul
  • andrew-integrationos
  • moe-giga
  • krishp
  • dspataro77