Skip to main content

useAuth API

The useAuth hook is a React hook that acts as a high-level interface for authorization.

The useAuth hook returns the following values:

Function NametypeSummary
publishAuthorizationfunctionCall this method to complete the authentication process and allow Finsemble to continue booting. See FSBL.Clients.AuthenticationClient.publishAuthorization().
quitApplicationfunctionCall this method to shutdown your SmartDesktop, for instance when the user closes the Authentiction Component.

Usage

import { useAuth } from "@finsemble/finsemble-core";

const Authentication = () => {
const { publishAuthorization, quitApplication } = useAuth();
};