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 Name type Summary
publishAuthorization function Call this method to complete the authentication process and allow Finsemble to continue booting. See FSBL.Clients.AuthenticationClient.publishAuthorization().
quitApplication function Call this method to shutdown your SmartDesktop, for instance when the user closes the Authentiction Component.

Usage

import { useAuth } from "@finsemble/finsemble-ui/react/hooks";

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