@os1-platform/console-ui-react 0.2.0 → 0.2.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/package.json +2 -2
- package/readme.md +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@os1-platform/console-ui-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "React wrapper for console-ui library",
|
|
5
5
|
"main": "dist/commonjs/aaa/index.js",
|
|
6
6
|
"types": "dist/commonjs/types/aaa/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@fullhuman/postcss-purgecss": "^5.0.0",
|
|
30
|
-
"@os1-platform/console-ui-js": "
|
|
30
|
+
"@os1-platform/console-ui-js": "file:../../console-ui-js/os1-platform-console-ui-js-0.2.0.tgz",
|
|
31
31
|
"@react-native-community/eslint-config": "^2.0.0",
|
|
32
32
|
"@types/react": "^17.0.37",
|
|
33
33
|
"axios": "^0.21.4",
|
package/readme.md
CHANGED
|
@@ -191,10 +191,10 @@
|
|
|
191
191
|
|
|
192
192
|
15. If nothing is selected then, when user clicks on app for the first time, it asks how we want to redirect the app.
|
|
193
193
|
|
|
194
|
-
16. To get Access Token, use `
|
|
194
|
+
16. To get Access Token, use `getAuthenticationTokens` method, for userInfo, use `getUser`, and check whether user is authenticated use `isAuthenticated()`. User have to use context of consoleUi and call authInitializer method of it.
|
|
195
195
|
```Javascript
|
|
196
196
|
if (consoleInstance) {
|
|
197
|
-
const accessToken = consoleInstance.authInitializer.
|
|
197
|
+
const accessToken = consoleInstance.authInitializer.getAuthenticationTokens();
|
|
198
198
|
const userInfo = consoleInstance.authInitializer.getUser();
|
|
199
199
|
const isUserAuthenticated = consoleInstance.authInitializer.isAuthenticated();
|
|
200
200
|
}
|