Cahnge token lifespan

This commit is contained in:
2025-10-05 17:24:01 +02:00
parent c092696a9a
commit f9b69be791
2 changed files with 1 additions and 3 deletions

View File

@@ -84,8 +84,6 @@ export default async function authRoutes(server: FastifyInstance) {
return reply.code(400).send({ error: "Email and password required" }); return reply.code(400).send({ error: "Email and password required" });
} }
console.log(req.tenant)
/** /**
* Wenn das Tenant Objekt verfügbar ist, befindet sich das Backend im Single Tenant Modus. * Wenn das Tenant Objekt verfügbar ist, befindet sich das Backend im Single Tenant Modus.
* Es werden nur Benutzer zugelassen, welche auschließlich diesem Tenant angehören. * Es werden nur Benutzer zugelassen, welche auschließlich diesem Tenant angehören.

View File

@@ -47,7 +47,7 @@ export default async function routes(server: FastifyInstance) {
tenant_id: body.tenant_id, tenant_id: body.tenant_id,
}, },
secrets.JWT_SECRET!, secrets.JWT_SECRET!,
{ expiresIn: "3h" } { expiresIn: "6h" }
); );
reply.setCookie("token", token, { reply.setCookie("token", token, {