@Admin and nrichard1 nrichard1, to check app permission please use getAuthCheckerForCurrentApp method. getAuthCheckerForCurrentApp returns a TriAuthChecker instance.
Example,
import {
getAuthCheckerForCurrentApp,
} from "@tririga/tririga-react-components";
const authChecker = await getAuthCheckerForCurrentApp();
if (authChecker.hasMinimumAppPermission()) {
renderApp(currentUser, appConfig);
} else {
renderUnauthorizedAccess(currentUser);
}
I would recommend using create-react-app @tririga/cra-template to build a tririga react app. The template has configuration, login, and permission logic handled.