@slashid/react
Version:
React SDK for the /id platform
17 lines • 646 B
TypeScript
import { OrganizationDetails } from "@slashid/slashid";
/**
* A stateful hook providing access to information about organizations the user is a
* member of. Use this hook to list organizations, see the current organization and
* switch to another organization.
*
* Each instance of this hook will fetch its own organization data, use with caution.
*/
export declare const useOrganizations: () => {
organizations: OrganizationDetails[];
currentOrganization: OrganizationDetails | null;
switchOrganization: ({ oid }: {
oid: string;
}) => void;
isLoading: boolean;
};
//# sourceMappingURL=use-organizations.d.ts.map