
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@hanzo/auth
Advanced tools
Follow these steps to initialize authentication with Hanzo Auth for your project:
Install package with pnpm i @hanzo/auth
Create custom Header component that includes an AuthWidget from @hanzo/auth. See example in luxdefi/sites repo
Edit root layout component
// ... other imports
import { AuthServiceProvider } from '@hanzo/auth/service'
import { getUserServerSide } from '@hanzo/auth/server'
import type { AuthServiceConf } from '@hanzo/auth/types'
// custom header with AuthWidget
import Header from '@/components/header'
// ...other code
const RootLayout: React.FC<PropsWithChildren> = async ({
children
}) => {
const currentUser = await getUserServerSide()
return (
<AuthServiceProvider user={currentUser} conf={{} as AuthServiceConf}>
<RootLayoutCommon siteDef={siteDef} header={false} >
<Header siteDef={siteDef}/>
{children}
</RootLayoutCommon>
</AuthServiceProvider>
)
}
export default RootLayout
/api/auth/login route.import { NextRequest } from 'next/server'
import { handleLoginApiRequest } from '@hanzo/auth/server'
export async function POST(request: NextRequest) {
return handleLoginApiRequest(request)
}
/api/auth/logout route.import { handleLogoutApiRequest } from '@hanzo/auth/server'
export async function GET() {
return handleLogoutApiRequest()
}
/login route that uses LoginComponent from @hanzo/auth. See example in luxdefi/sites repoFAQs
Pluggable authentication library. No Firebase dependency. Use @hanzo/auth-firebase or Hanzo IAM.
The npm package @hanzo/auth receives a total of 54 weekly downloads. As such, @hanzo/auth popularity was classified as not popular.
We found that @hanzo/auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.