Skip to content

Commit

Permalink
Fixes #2 expiration time bug
Browse files Browse the repository at this point in the history
  • Loading branch information
EricKit committed Sep 14, 2019
1 parent 161aaa4 commit 00c3d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class AuthService {
let expiration: Date | undefined;
if (expiresIn) {
expiration = new Date();
expiration.setSeconds(expiration.getSeconds() + expiresIn);
expiration.setTime(expiration.getTime() + expiresIn * 1000);
}
const data: JwtPayload = {
email: user.email,
Expand Down

0 comments on commit 00c3d27

Please sign in to comment.