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