You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-10Lines changed: 22 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,13 @@ The Warrant React library provides components, hooks, and helper methods for con
9
9
10
10
## Installation
11
11
12
-
Use `npm` to install the module:
12
+
Use `npm` to install the core Warrant client module [`@warrantdev/warrant-js`](https://github.com/warrant-dev/warrant-js). This module includes methods shared across our client libraries (Vue, Angular, etc.) and additional types (for TypeScript users).
13
+
14
+
```sh
15
+
npm install @warrantdev/warrant-js
16
+
```
17
+
18
+
Use `npm` to install `@warrantdev/react-warrant-js`:
13
19
14
20
```sh
15
21
npm install @warrantdev/react-warrant-js
@@ -199,7 +205,7 @@ export default MyComponent;
199
205
`checkMany` is a utility function that returns a `Promise` which resolves with `true` if the user for the current session token has _all of_ or _any of_ (based on a specified `op`) a set of specified `warrants` and returns `false` otherwise.
`hasPermission` is a utility function that returns a `Promise` which resolves with `true` if the user for the current session token has the specified `permissionId` and returns `false` otherwise.
`hasFeature` is a utility function that returns a `Promise` which resolves with `true` if the user for the current session token has the specified `featureId` and returns `false` otherwise.
0 commit comments