Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
elysia-auth-drizzle
Advanced tools
Library who handle authentification (Header/Cookie/QueryParam).
import { elysiaAuthDrizzlePlugin } from 'elysia-auth-drizzle';
export const app = new Elysia()
.use(
elysiaAuthDrizzlePlugin<typeof users.$inferSelect>({
config: [
{
url: '/public',
method: 'GET',
},
],
jwtSecret: 'test',
drizzle: {
db: db,
usersSchema: users,
tokensSchema: tokens,
},
}),
)
name | default | description |
---|---|---|
jwtSecret | undefined | Secret used to sign JWT |
drizzle | undefined | Contain drizzle db + users schema + tokens schemas ({db, userSchemas, tokenSchemas}) |
config | [] | Array who contain url with method allowed in public |
cookieSecret | undefined | (optional) Secret used to sign cookie value |
verifyAccessTokenOnlyInJWT | false | (optional) Check only JWT expiration not token validity in DB |
userValidation | undefined | (optional) (user) => void or Promise<void> / Allow to make more check regarding user (ex: check if user is banned) |
To execute jest tests (all errors, type integrity test)
bun test
FAQs
Library who handle authentification (Header/Cookie/QueryParam).
The npm package elysia-auth-drizzle receives a total of 223 weekly downloads. As such, elysia-auth-drizzle popularity was classified as not popular.
We found that elysia-auth-drizzle demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.