# react-native-bisdk-core-mb

## Installation

```shell
npm install --save react-native-bisdk-core-mb
```

## Importing

```js
const BISDKCoreModule = require('react-native-bisdk-core-mb')
```

## Usage

```js
const biSDKCoreModule = new BISDKCoreModule()
```

> Use this code for login into BI Platform

```js
biSDKCoreModule.platformLogin(<!username>, <!password>, <!organization-id>).then(
  (response) => {
    console.log("response: ", response);
  },
  (error) => {
    console.log("error: ", error);
  }
);
```

> Use this code for refresh token

```js
biSDKCoreModule.getRefreshTokenBISDK(<!refresh_token>).then(
  (response) => {
    console.log("response: ", response);
  },
  (error) => {
    console.log("error: ", error);
  }
);
```

> Use this code for login into BI Platform

```js
biSDKCoreModule.platformLogOut(<!accessToken>, <!tokenId>).then(
  (response) => {
    console.log("response: ", response);
  },
  (error) => {
    console.log("error: ", error);
  }
);
```
