
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@frontegg/react-auth
Advanced tools
Pre-built Authentication components to easily integrate Auth Components into your React App.
Frontegg-React-Auth is available as an npm package.
// using npm
npm install @frontegg/react-auth
// using yarn
yarn add @frontegg/react-auth
// NOTE: to get the latest stable use @latest.
All you need is to add pass AuthPlugin to the FronteggProvider
:
/* imports */
import { FronteggProvider } from '@frontegg/react-core';
import { AuthPlugin } from '@frontegg/react-auth';
ReactDOM.render(
<BrowserRouter>
<FronteggProvider
context={/* context options */}
plugins={[
AuthPlugin()
]}>
<App />
</FronteggProvider>
</BrowserRouter>, document.querySelector('#app'));
Frontegg-React-Auth provide the ability to fully customize your components to align it with your App UI design.
header
<ReactNode>
backgroundImage
<string>
backgroundColor
<CSSColor>
loaderComponent
<ReactNode>
routes
<string[]>
Advanced Customizations
header <ReactNode>
(optional) React Component used to customize your authentication page header
const plugins = [
AuthPlugin({
header: <MyAuthPageHeader/>,
//...rest options
})
];
backgroundImage <string>
(optional) CSS Color used to for authentication page background color
const plugins = [
AuthPlugin({
backgroundImage: 'https://image_url' | 'data:image/png;base64,...',
//...rest options
})
];
backgroundColor <CSSColor>
(optional) CSS Color used to for authentication page background color
const plugins = [
AuthPlugin({
backgroundColor: '#FAFAFA' | 'red' | 'rgb(200,200,200)',
//...rest options
})
];
loaderComponent <ReactNode>
(optional) React Component displayed in first load while resolving the verifying the authenticated user, refreshing the token, and to check if the user should be redirected to login page.
const plugins = [
AuthPlugin({
loaderComponent: <MyLoaderComponent>,
//...rest options
})
];
routes <string[]>
(optional) Path routes for Authentication Components, these pathes used to redirect the user to a specific route depends on authentication state.
const plugins = [
AuthPlugin({
routes: {
/**
* the page whither need to redirect in the case when a user is authenticated
*/
authenticatedUrl: '/',
/**
* the page whither need to redirect in the case when a user is not authenticated
*/
loginUrl: '/account/login',
/**
* navigating to this url, AuthProvider will logout and remove coockies
*/
logoutUrl: '/account/logout',
/**
* the page whither need to redirect in the case when a user want to activate his account
*/
activateUrl: '/account/activate',
/**
* the page in the case a user forgot his account password
*/
forgetPasswordUrl: '/account/forgot/password',
/**
* the page whither need to redirect in the case when a user redirected from reset password url
*/
resetPasswordUrl: '/account/reset/password',
},
//...rest options
})
];
Implementation of custom and dedicated UI on top of the Frontegg stateful
API is available by following our docs on the React API section.
In case you want to implement your states on top of our stateless API follow our docs on the REST API section.
The main purpose of this repository is to continue developing Frontegg React to making it faster and easier to use. Read our contributing guide to learn about our development process.
Notice that contributions go far beyond pull requests and commits.
This project is licensed under the terms of the MIT license.
FAQs
<h1 align="cent
The npm package @frontegg/react-auth receives a total of 79 weekly downloads. As such, @frontegg/react-auth popularity was classified as not popular.
We found that @frontegg/react-auth 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.