secret as env
This commit is contained in:
parent
0fe40135fd
commit
b6380be05b
2 changed files with 1 additions and 23 deletions
|
|
@ -88,7 +88,7 @@ const app = new Elysia()
|
|||
schema: t.Object({
|
||||
id: t.String(),
|
||||
}),
|
||||
secret: "secret",
|
||||
secret: process.env.JWT_SECRET || randomUUID(),
|
||||
exp: "7d",
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue