@asgardeo/auth-react 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/main.js +1 -1
- package/dist/src/authenticate.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/authenticate.tsx +33 -0
- package/webpack.config.js +7 -7
package/README.md
CHANGED
|
@@ -48,9 +48,18 @@ Follow this guide to integrate Asgardeo to your own React Application. To try ou
|
|
|
48
48
|
### 1. Installing the Package
|
|
49
49
|
|
|
50
50
|
Run the following command to install `@asgardeo/auth-react` & `react-router-dom` from the npm registry.
|
|
51
|
+
|
|
52
|
+
Use below command if you are using *React v16.8* or greater & *React Router v6*
|
|
53
|
+
|
|
51
54
|
```bash
|
|
52
55
|
npm install @asgardeo/auth-react react-router-dom --save
|
|
53
56
|
```
|
|
57
|
+
Else if you are using *React v16.8* or greater & *React Router v5*, use below command
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm install @asgardeo/auth-react@1.1.19 react-router-dom@5.3.4 --save
|
|
61
|
+
```
|
|
62
|
+
|
|
54
63
|
> **Note**
|
|
55
64
|
> The `react-router-dom` package is a peer-dependency of the SDK and it is required to be installed for the SDK to work. We are working on making it optional.
|
|
56
65
|
|