authkit-frontend
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

authkit-react

React hook and components for integrating with IntegrationOS AuthKit.

Install

With npm:

npm i @integrationos/authkit-react

With yarn:

yarn add @integrationos/authkit-react

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-react";

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

Full Documentation

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

Dependencies (0)

    Dev Dependencies (32)

    Package Sidebar

    Install

    npm i authkit-frontend

    Weekly Downloads

    0

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    27.6 kB

    Total Files

    16

    Last publish

    Collaborators

    • krishp