This commit is contained in:
Mitchell Magro 2025-10-25 08:01:17 +02:00
parent ed7fc9c4ca
commit 247b61f81b

View File

@ -5,7 +5,6 @@ import { SignJWT } from "jose";
// Secret key for JWT signing (in production, use environment variable)
const JWT_SECRET = new TextEncoder().encode(process.env.JWT_SECRET);
// Token expiration time (in seconds)
const TOKEN_EXPIRY = 60 * 60 * 12; // 12 hours (in seconds)
// This is your POST handler for the login endpoint