UNPKG

@code_district/doorman

Version:

Doorman: A comprehensive React package for seamless authentication and authorization management. Easily integrate secure user authentication and access control in your applications. Streamline user verification, role-based permissions, and secure data han

14 lines (9 loc) 274 B
import Singleton from "../../singleton/singleton"; export const DoormanGetLoggedInUserTenant = () => { var instance = Singleton.getInstance(); const userTenant = instance?.configuration?.tenantInfo; if (!userTenant) { return false; } return userTenant; };