Frontend bindings for IntegrationOS AuthKit
npm install @integrationos/authkitHook and components for integrating with IntegrationOS AuthKit. Compatible with React, Next.js, Vue, Svelte and more.
With npm:
``jsx`
npm i @integrationos/authkit
With yarn:
`jsx`
yarn add @integrationos/authkit
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.
`jsx
import { useAuthKit } from "@integrationos/authkit";
const { open } = useAuthKit({
token: {
url: "https://api.your-company-name.com/authkit-token",
headers: {},
},
onSuccess: (connection) => {},
onError: (error) => {},
onClose: () => {},
});
``
Please refer to the official IntegrationOS AuthKit docs for a more holistic understanding of IntegrationOS AuthKit.