chore: atualizações de dependências, lint fixes e ajustes menores

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Felipe Coutinho
2026-02-15 21:35:39 +00:00
parent 2362a70b9d
commit b9f788312c
35 changed files with 637 additions and 824 deletions

View File

@@ -1,7 +1,9 @@
import crypto from "node:crypto";
const JWT_SECRET =
process.env.BETTER_AUTH_SECRET || "opensheets-secret-change-me";
const JWT_SECRET = process.env.BETTER_AUTH_SECRET;
if (!JWT_SECRET) {
throw new Error("BETTER_AUTH_SECRET is required. Set it in your .env file.");
}
const ACCESS_TOKEN_EXPIRY = 7 * 24 * 60 * 60; // 7 days in seconds
const REFRESH_TOKEN_EXPIRY = 90 * 24 * 60 * 60; // 90 days in seconds