Skip to content

Commit

Permalink
chore(api): update jwt expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
vernu committed Apr 14, 2024
1 parent ec4a92e commit c866d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/.env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PORT=
MONGO_URI=
JWT_SECRET=secret
JWT_EXPIRATION=60d

FIREBASE_PROJECT_ID=
FIREBASE_PRIVATE_KEY_ID=
Expand Down
2 changes: 1 addition & 1 deletion api/src/auth/auth.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
PassportModule,
JwtModule.register({
secret: process.env.JWT_SECRET,
signOptions: { expiresIn: '180d' },
signOptions: { expiresIn: process.env.JWT_EXPIRATION || '60d' },
}),
MailModule,
],
Expand Down

0 comments on commit c866d0a

Please sign in to comment.