+1
-1
| { | ||
| "name": "abp-react", | ||
| "version": "1.0.8", | ||
| "version": "1.0.9", | ||
| "description": "ABP-REACT is a versatile React library that provides convenient tools and utilities for integrating with the ABP (ASP.NET Boilerplate) framework in your React applications.", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
+5
-5
@@ -17,3 +17,3 @@ # Abp-React | ||
| import { abp, AbpWrapper, initialiseApp } from 'abp-react'; | ||
| import { useAbp, useUser } from 'abp-react'; | ||
| import { useAbp, useAbpUser } from 'abp-react'; | ||
| import { login, clearAuthCookies } from 'abp-react'; | ||
@@ -61,5 +61,5 @@ import { L } from 'abp-react'; | ||
| #### useUser | ||
| #### useAbpUser | ||
| Retrieve information about the current user with the useUser hook. | ||
| Retrieve information about the current user with the useAbpUser hook. | ||
| Should only be used inside "AbpWrapper" component | ||
@@ -69,3 +69,3 @@ | ||
| function UserProfile() { | ||
| const user = useUser<MyUserType>(); | ||
| const user = useAbpUser<MyUserType>(); | ||
@@ -76,3 +76,3 @@ // Access user information | ||
| For simplicity you can create an abstraction over the useUser hook. If no user type is provided useUser will return ANY. | ||
| For simplicity you can create an abstraction over the useAbpUser hook. If no user type is provided useAbpUser will return ANY. | ||
@@ -79,0 +79,0 @@ ### 4. Authentication |
137789
0.01%