
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
@hono/clerk-auth
Advanced tools
This is a Clerk third-party middleware for Hono.
This middleware can be used to inject the active Clerk session into the request context.
npm i hono @hono/clerk-auth
Before starting using the middleware you must set the following environment variables:
CLERK_SECRET_KEY=<You-secret-key>
CLERK_PUBLISHABLE_KEY=<Your-publishable-key>
import { clerkMiddleware, getAuth } from '@hono/clerk-auth'
import { Hono } from 'hono'
const app = new Hono()
app.use('*', clerkMiddleware())
app.get('/', (c) => {
const auth = getAuth(c)
if (!auth?.userId) {
return c.json({
message: 'You are not logged in.',
})
}
return c.json({
message: 'You are logged in!',
userId: auth.userId,
})
})
export default app
import { clerkMiddleware, getAuth } from '@hono/clerk-auth'
import { Hono } from 'hono'
const app = new Hono()
app.use('*', clerkMiddleware())
app.get('/', async (c) => {
const clerkClient = c.get('clerk')
try {
const user = await clerkClient.users.getUser('user_id_....')
return c.json({
user,
})
} catch (e) {
return c.json(
{
message: 'User not found.',
},
404
)
}
})
export default app
Vaggelis Yfantis https://github.com/octoper
FAQs
A third-party Clerk auth middleware for Hono
The npm package @hono/clerk-auth receives a total of 13,816 weekly downloads. As such, @hono/clerk-auth popularity was classified as popular.
We found that @hono/clerk-auth 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.