Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

abp-react

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abp-react - npm Package Compare versions

Comparing version
1.0.8
to
1.0.9
+1
-1
package.json
{
"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",

@@ -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