Overview
Tail SDK can be used to integrate Tail in your own application and manage authenticating your end users and link them with different apps.
Getting started
Install @raccoonai/tail-react
package by executing the following command.
Below is an example of how to use the Tail SDK to authenticate and link a user.
Usage
useTailSDK
The useTailSDK hook lets you instantiate and use the Tail SDK in your application.
LinkAppModal
The modal to display necessary information and start the app linking process.
getApps
This function returns a list of all the apps available for authentication for your organisation.
getLinkedApps
This function returns a list of all the apps that are currently authenticated and linked for a user. You need to pass the raccoonPasscode
of the user you want to check the linked apps for.
unlinkApp
The unlinkApp
function in tailInstance
unlinks the app for the provided Raccoon Passcode. It returns a boolean true if the unlinking is successful and false if it fails.
Was this page helpful?