
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@oneuid/login
Advanced tools
Drop-in login component for OneUID — email/password, OAuth (Google, GitHub, Apple), and phone OTP
Drop-in login component for OneUID. Renders the right UI from your app’s enabled auth methods: email/password, OAuth (Google, GitHub, Apple), and phone OTP.
npm install @oneuid/login
# or
pnpm add @oneuid/login
# or
yarn add @oneuid/login
Peer dependencies: React 18+ (and react-dom).
import { LoginBox } from '@oneuid/login';
<LoginBox
clientId="clxx..."
apiUrl="https://api.oneuid.dev"
onSuccess={(data) => {
console.log(data.accessToken, data.refreshToken);
// Store tokens and redirect or update app state
}}
onError={(msg) => console.error(msg)}
/>
| Prop | Type | Required | Description |
|---|---|---|---|
clientId | string | Yes | Your OneUID app client ID (from the dashboard). |
apiUrl | string | Yes | OneUID API base URL (e.g. https://api.oneuid.dev). |
onSuccess | (data: LoginSuccessData) => void | Yes | Called with { accessToken, refreshToken, expiresIn, user } after a successful login. |
onError | (error: string) => void | No | Called when loading auth methods or login fails. |
redirectUrl | string | No | OAuth callback URL (defaults to current window location). |
className | string | No | Extra CSS class for the container. |
brandName | string | No | App name shown in the title (otherwise from API). |
logoUrl | string | No | URL of your logo image. |
The component fetches enabled auth methods from GET /v1/public/auth-methods?clientId=... and shows the matching options (social buttons, email/password form, or phone OTP flow).
MIT
FAQs
Drop-in login component for OneUID — email/password, OAuth (Google, GitHub, Apple), and phone OTP
The npm package @oneuid/login receives a total of 7 weekly downloads. As such, @oneuid/login popularity was classified as not popular.
We found that @oneuid/login 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.