readme update

master
Tudor Stanciu 2023-02-11 15:58:48 +02:00
parent ffffa8a35b
commit 33e68d4866
1 changed files with 12 additions and 2 deletions

View File

@ -13,7 +13,17 @@ The package installation can be done in two ways:
## How to use the package
TO DO
```javascript!
const { TuitioClient, fetch, invalidate } = require("@flare/tuitio-client");
const TuitioClient = require("@flare/tuitio-client");
const type { TuitioToken, TuitioAuthenticationResult, TuitioState } = require("@flare/tuitio-client");
```
```javascript!
import { TuitioClient, fetch, invalidate } from "@flare/tuitio-client";
import TuitioClient from "@flare/tuitio-client";
import type { TuitioToken, TuitioAuthenticationResult, TuitioState } from "@flare/tuitio-client";
```
## Unit testing
@ -23,5 +33,5 @@ All tests in the package can be executed by running: `npm test`.
## Changelog
1.0.0 - Package initialization \
1.0.0 - Package initialization
1.0.1 - Export Tuitio types