yarn add @spaceblocks/permissions-react
import { PermissionService } from '@spaceblocks/permissions-client';
const permissionService = new PermissionService(
'SPACE_BLOCKS_ENVIRONMENT_URL',
'SPACE_BLOCKS_API_KEY',
accessTokenFactory, // this function calls Your backend to get the access token
);