1.1.10 • Published 3 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
3 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.1
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.1.5
4 years ago
1.0.6
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.0.10
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago