Skip to content

Commit 2a88509

Browse files
committed
change expires time for jwt access secret
1 parent 04278d2 commit 2a88509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default class UserModel extends AbstractModel<UserDBScheme> implements Us
268268
userId: this._id,
269269
},
270270
process.env.JWT_SECRET_ACCESS_TOKEN as Secret,
271-
{ expiresIn: '1d' }
271+
{ expiresIn: '15m' }
272272
);
273273

274274
const refreshToken = await jwt.sign(

0 commit comments

Comments
 (0)