1.1.10 • Published 2 years ago
vercel-jwt-auth v1.1.10
vercel-jwt-auth
This provides a very simple function to wrap handlers in vercel, with jwt verification - the only parameter is the secret to verify the jwt
import { supabase, VercelRequestWithUser } from "../src/vercel-jwt-auth";
const SECRET = "...";
const endpoint = supabase(SECRET)((req: VercelRequestWithUser, res) => {
console.log(req.user);
res.status(200);
res.json("OK");
});
1.1.10
2 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.1
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.1.5
3 years ago
1.0.6
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.0.10
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago