secrets in .env
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -25,6 +25,7 @@ yarn-debug.log*
|
|||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
# local env files
|
# local env files
|
||||||
|
**/.env
|
||||||
.env.local
|
.env.local
|
||||||
.env.development.local
|
.env.development.local
|
||||||
.env.test.local
|
.env.test.local
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { jwt } from '@elysiajs/jwt'
|
|||||||
export const jwtConfig = jwt({
|
export const jwtConfig = jwt({
|
||||||
name: 'jwt',
|
name: 'jwt',
|
||||||
exp: '7d',
|
exp: '7d',
|
||||||
secret: 'Fischl von Luftschloss Narfidort'
|
secret: process.env.JWT_SECRET!
|
||||||
})
|
})
|
||||||
|
|
||||||
export const auth = new Elysia({ prefix: "/auth" })
|
export const auth = new Elysia({ prefix: "/auth" })
|
||||||
|
|||||||
Reference in New Issue
Block a user