
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
This package is designed for full-stack developers, who also not know with deal with jwt on frontend
On Server:
import { JwtServer } from 'jwt-runner'
const server = new JwtServer({ secret: "my-secret" })
const accessToken = await server.encode({ userId: 1 })
...
const payload = await server.verifyAndDecode(accessToken)
On Client:
import { JwtClient } from 'jwt-runner/browser'
const jwtClient = new JwtClient({
onUpdate: async (refreshToken) => {
// Make request to server for update access and refresh tokens
return { accessToken, refreshToken }
}
})
// If the tokens have been stored before, jwtClient.start() will pull them from localStorage
await jwtClient.start()
jwtClient.setTokens({ accessToken, refreshToken })
// The client will then automatically update the tokens as needed
FAQs
Package for generate and auto-update tokens on client browsers
We found that jwt-runner demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.