Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@gtramontina.com/elysia-authkit
Advanced tools
Elysia plugin to integrate with [AuthKit](https://www.authkit.com/).
Elysia plugin to integrate with AuthKit.
[!NOTE]
This package is not affiliated with AuthKit or WorkOS. It currently only implements the flow described in the AuthKit Getting Started guide (hosted sign up and sign in forms).
bun add --exact @gtramontina.com/elysia-authkit
Follow the initial steps of the AuthKit documentation to get an account and keys setup.
import { authKit } from "@gtramontina.com/elysia-authkit";
import { WorkOS } from "@workos-inc/node";
import { Elysia } from "elysia";
new Elysia()
.use(
authKit({
workos: new WorkOS(process.env.WORKOS_API_KEY),
clientId: process.env.WORKOS_CLIENT_ID,
jwtSecret: process.env.JWT_SECRET_KEY,
redirectUri: "http://localhost:8080/callback",
}),
)
.onError(({ code, error, set }) => {
if (code === "UnauthorizedError") {
set.redirect = "/login";
}
})
.get("/", ({ user }) => {
return `Hello, ${user.firstName ?? "world"}!`;
})
.listen(8080, () => {
console.info("Listening on http://localhost:8080");
});
Please feel free to explore the example for a more complete usage and the Options type for more details and options on how to customize the plugin for your needs.
FAQs
Elysia plugin to integrate with [AuthKit](https://www.authkit.com/).
We found that @gtramontina.com/elysia-authkit 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.