Cahnge token lifespan
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user