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

25 lines (23 loc) 509 B
import axios from "axios"; export const DoormanTenantInfoByDomainPrefix = async ({ domainPrefix, apiGatewayUrl, }) => { try { let response = null; return await axios .get( `${apiGatewayUrl}/tenant/public/get-info?domainPrefix=${domainPrefix}`, {} ) .then((res) => { response = res.data; return res.data; }) .catch((err) => { throw new Error(err.message); }); } catch (err) { throw new Error(err.message); } };