secret as env

This commit is contained in:
C4illin 2024-05-24 23:16:55 +02:00
parent 0fe40135fd
commit b6380be05b
2 changed files with 1 additions and 23 deletions

View file

@ -88,7 +88,7 @@ const app = new Elysia()
schema: t.Object({
id: t.String(),
}),
secret: "secret",
secret: process.env.JWT_SECRET || randomUUID(),
exp: "7d",
}),
)