
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@whop-apps/auth
Advanced tools
The auth package exports one main function: validateToken
validateTokenThe validateToken function is will take in a string / request or headers object and validate the user auth JWT set by the cloudflare app proxy.
This function ensures that the token included in the request is from a legitimate user. This user's userId is returned in the response.
If the dontThrow parameter is specified the function is guaranteed to not throw errors and will instead return null if the token is invalid.
It depends on the @whop-apps/core package to get the public key and app id from the env.
Required env variables:
WHOP_JWT_PK - the public key to verify JWT. encoded as a JWKNEXT_PUBLIC_WHOP_APP_ID - the id of the current app.You can also override both of these in the function arguments
all errors thrown by this package are instances of AuthError which extends Error and has the following properties:
code - the error code (a more machine readable / parse-able version of the error)FAQs
The `auth` package exports one main function: `validateToken`
We found that @whop-apps/auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.