import { Context, Next } from 'hono';
import { jwt } from 'hono/jwt';
export default function(c: Context<any, string, {}>, next: Next) {
const jwtMiddleware = jwt({
secret: process.env.JWT_SECRET!
});
return jwtMiddleware(c, next);
}
import { Context, Next } from 'hono';
import { jwt } from 'hono/jwt';
export default function(c: Context<any, string, {}>, next: Next) {
const jwtMiddleware = jwt({
secret: process.env.JWT_SECRET!
});
return jwtMiddleware(c, next);
}