@asgardeo/auth-react 2.0.0 → 2.0.2

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 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
 
@@ -119,7 +128,7 @@ import { AsgardeoSPAClient } from "@asgardeo/auth-react";
119
128
  // In package.json
120
129
 
121
130
  dependencies: {
122
- "@asgardeo/auth-react": "1.1.18"
131
+ "@asgardeo/auth-react": "^2.0.0"
123
132
  }
124
133
  ```
125
134
  </p>