open-index/open-npm huggingface dataset:
npm package: @open-age/client
Description: a client to connect to open-age services
Author: Sunny Parkash
Latest version: 1.2.4

# directory-client

Client to interact with the user

## config

add following section to the `config/{env}.config` file

```JSON
"providers": {
    "directory": {
        "url": "http://api.openage.in/directory/v1/api", // prod url
        "role": {
            "key": "<presistant token>"
        }
    }
}
```

## usage

Get a role by key

```JavaScript

const client = require('@open-age/client')

const roleKey = 'xxx....xxx' // role key of the user

// impersonates the user
const role = await client.directory.roles.get(roleKey)
```
npm package: @open-age/directory-client
Description: a client to connect to open-age directory
Author: Sunny Parkash
Latest version: 2.2.4

# directory-client

Client to interact with the user

## config

add following section to the `config/{env}.config` file

```JavaScript
"providers": {
    "directory": {
        // "url": "http://ems-api-dev.m-sas.com", // test url
        "url": "http://directory-api.mindfulsas.com", // prod url
        "tenantKey": null,
        "tenantCode": "aqua"
    }
}
```

## usage

Get a role by key

```JavaScript

const directory = require('@open-age/directory-client')

const roleKey = 'xxx....xxx' // role key of the user

// impersonates the user
const role = await directory.roles.get(roleKey)
```