diff --git a/src/routes/auth/auth.ts b/src/routes/auth/auth.ts index 72e3199..bafb19c 100644 --- a/src/routes/auth/auth.ts +++ b/src/routes/auth/auth.ts @@ -84,8 +84,6 @@ export default async function authRoutes(server: FastifyInstance) { 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. * Es werden nur Benutzer zugelassen, welche auschließlich diesem Tenant angehören. diff --git a/src/routes/tenant.ts b/src/routes/tenant.ts index 0739e04..ef02a5d 100644 --- a/src/routes/tenant.ts +++ b/src/routes/tenant.ts @@ -47,7 +47,7 @@ export default async function routes(server: FastifyInstance) { tenant_id: body.tenant_id, }, secrets.JWT_SECRET!, - { expiresIn: "3h" } + { expiresIn: "6h" } ); reply.setCookie("token", token, {