
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@seamless-auth/react
Advanced tools
A drop-in authentication provider for React applications, designed to handle login, multi-factor authentication, passkeys, and user session validation using your own backend.
AuthProvider contextuseAuth() hook for access to auth state and actionsreact-router-domnpm install seamless-auth-react
AuthProviderimport { AuthProvider } from 'seamless-auth-react';
import { BrowserRouter } from 'react-router-dom';
<BrowserRouter>
<AuthProvider apiHost="https://your.api/">
<AppRoutes />
</AuthProvider>
</BrowserRouter>;
useAuth() to access auth stateimport { useAuth } from 'seamless-auth-react';
const Dashboard = () => {
const { user, logout } = useAuth();
return (
<div>
Welcome, {user?.email}
<button onClick={logout}>Logout</button>
</div>
);
};
<AuthRoutes /> for handling login/mfa/passkey screensimport { Routes, Route } from 'react-router-dom';
import { useAuth, AuthRoutes } from 'seamless-auth-react';
const AppRoutes = () => {
const { isAuthenticated } = useAuth();
return (
<Routes>
{isAuthenticated ? (
<Route path="*" element={<Dashboard />} />
) : (
<Route path="*" element={<AuthRoutes />} />
)}
</Routes>
);
};
Note: You are responsible for handling route protection and redirects based on
isAuthenticated.
useAuth() returns:{
user: { email: string, roles?: string[] } | null;
isAuthenticated: boolean;
logout(): Promise<void>;
deleteUser(): Promise<void>;
hasRole(role: string): boolean | undefined;
}
/login/mfaLogin/passKeyLogin/registerPasskey/verifyOTPEach route includes a pre-built UI and expects your backend to expose compatible endpoints.
You can override the included UI screens by:
<BrowserRouter> or <Routes>.AuthProvider automatically calls /users/me on load to validate session.MIT
FAQs
A drop-in authentication solution for modern React applications.
We found that @seamless-auth/react demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.