
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@lit-protocol/auth-services
Advanced tools
This package contains the PKP Authentication Services & Login Server for the Lit Protocol.
This package contains the PKP Authentication Services & Login Server for the Lit Protocol.
pnpm install @lit-protocol/auth-services
import { createLitAuthServer } from '@lit-protocol/auth-services';
import { startAuthServiceWorker } from '@lit-protocol/auth-services';
const litAuthServer = createLitAuthServer({
port: Number(3001),
host: '0.0.0.0',
network: process.env['NETWORK'],
litTxsenderRpcUrl: process.env['LIT_TXSENDER_RPC_URL'] as string,
litTxsenderPrivateKey: process.env['LIT_TXSENDER_PRIVATE_KEY'],
enableApiKeyGate: true,
stytchProjectId: process.env['STYTCH_PROJECT_ID'],
stytchSecretKey: process.env['STYTCH_SECRET'],
maxRequestsPerWindow: Number(process.env['MAX_REQUESTS_PER_WINDOW']),
windowMs: Number(process.env['WINDOW_MS']),
redisUrl: process.env['REDIS_URL'] as string,
});
// Start the auth server
await litAuthServer.start();
// Requires REDIS_URL
await startAuthServiceWorker({
litTxsenderRpcUrl: process.env['LIT_TXSENDER_RPC_URL'] as string,
redisUrl: process.env['REDIS_URL'] as string,
});
pnpm install @lit-protocol/auth-services
import { createLitLoginServer } from '@lit-protocol/auth-services';
const litLoginServer = createLitLoginServer({
port: Number(process.env['LOGIN_SERVER_PORT']),
host: process.env['LOGIN_SERVER_HOST'],
stateExpirySeconds: 30,
socialProviders: {
google: {
clientId: process.env['LOGIN_SERVER_GOOGLE_CLIENT_ID'] as string,
clientSecret: process.env['LOGIN_SERVER_GOOGLE_CLIENT_SECRET'] as string,
},
discord: {
clientId: process.env['LOGIN_SERVER_DISCORD_CLIENT_ID'] as string,
clientSecret: process.env['LOGIN_SERVER_DISCORD_CLIENT_SECRET'] as string,
},
},
});
await litLoginServer.start();
FAQs
This package contains the PKP Authentication Services & Login Server for the Lit Protocol.
We found that @lit-protocol/auth-services demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.