
Research
/Security News
GlassWASM: WebAssembly Malware Found in Trojanized Open VSX Extensions
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.
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.
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. This library simplifies common tasks such as authentication, localization, and accessing ABP-related functionalities.
npm install abp-react
import { abp, AbpWrapper, initialiseApp } from 'abp-react';
import { useAbp, useUser } from 'abp-react';
import { login, clearAuthCookies } from 'abp-react';
import { L } from 'abp-react';
A. With AbpWrapper wrap your main application component with AbpWrapper to enable ABP integration. Pass a fallback function to be seen while loading the configuration from ASP.NET Boilerplate.
function App() {
return (
<AbpWrapper baseUrl="your base url" fallback={<Loading />}>
{/* Your application components */}
</AbpWrapper>
);
}
Optionally you can specify a "tenantId" to override the default one.
B. Without AbpWrapper If you're not using the AbpWrapper component, initialize your application with the configuration response from the ABP backend.
const abpConfigResponse = initialiseApp(abpConfigResponse); // Fetch configuration from ABP backend;
Access ABP instance and its functionalities using the useAbp hook.
function MyComponent() {
const abpInstance = useAbp();
const { abp } = abpInstance;
// Use abpInstance methods and properties
}
Retrieve information about the current user with the useUser hook. Should only be used inside "AbpWrapper" component
function UserProfile() {
const user = useUser<MyUserType>();
// Access user information
}
For simplicity you can create an abstraction over the useUser hook. If no user type is provided useUser will return ANY.
Perform user login using the login method. Perform the login operation and pass "expireInSeconds", "accessToken", "encryptedAccessToken"
async function loginUser(username, password) {
let loginResponse = ...
try {
await login(loginResponse);
// Successful login logic
} catch (error) {
// Handle login error
}
}
Clear authentication cookies using clearAuthCookies.
function logoutUser() {
clearAuthCookies();
// Additional logout logic
}
Access localization resources using the L function.
function MyLocalizedComponent() {
const localizedText = L('key', 'your source name here');
// Use localizedText in your component
}
We recommend overriding the "L" function so it would be easier to use.
function customL(key) {
const sourceName = process.env.SOURCE_NAME;
return L(key, sourceName);
}
Feel free to contribute to the abp-react library. Fork the repository, make your changes, and submit a pull request. Your contributions are highly appreciated!
FAQs
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.
The npm package abp-react receives a total of 42 weekly downloads. As such, abp-react popularity was classified as not popular.
We found that abp-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.