Skip to content

Commit

Permalink
fix(login.service.ts): adjust expiration time to '7d'
Browse files Browse the repository at this point in the history
  • Loading branch information
bs32g1038 committed May 23, 2023
1 parent 6dc5b63 commit 2fef120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/modules/login/login.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class LoginService {
email: user.email,
account,
token: jwt.sign({ account, roles: ['admin'] }, TOKEN_SECRET_KEY, {
expiresIn: 60 * 60,
expiresIn: '7d',
}),
};
}
Expand Down

0 comments on commit 2fef120

Please sign in to comment.