@spaceblocks/permissions-server
v2.12.0
Published
Server-SDK for Space Blocks Permissions
Downloads
206
Readme
Space Blocks Permissions - Server-SDK
Getting started
Install
yarn add @spaceblocks/permissions-server
Initialize
import { PermissionsClient } from '@spaceblocks/permissions-server';
const permissionsClient = new PermissionsClient(
'SPACE_BLOCKS_PERMISSIONS_URL',
{
apiKey: 'SPACE_BLOCKS_API_KEY',
clientId: 'SPACE_BLOCKS_CLIENT_ID',
clientSecret: 'SPACE_BLOCKS_CLIENT_SECRET',
scopes: 'permissions:management:read permissions:management:write'
}
);