@open-age/client

1.2.1 • Public • Published

directory-client

Client to interact with the user

config

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

"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

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)

/@open-age/client/

    Package Sidebar

    Install

    npm i @open-age/client

    Weekly Downloads

    0

    Version

    1.2.1

    License

    WTFPL

    Unpacked Size

    19.1 kB

    Total Files

    20

    Last publish

    Collaborators

    • sunny-parkash