Skip to content

Commit 00c3d27

Browse files
committed
Fixes #2 expiration time bug
1 parent 161aaa4 commit 00c3d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class AuthService {
105105
let expiration: Date | undefined;
106106
if (expiresIn) {
107107
expiration = new Date();
108-
expiration.setSeconds(expiration.getSeconds() + expiresIn);
108+
expiration.setTime(expiration.getTime() + expiresIn * 1000);
109109
}
110110
const data: JwtPayload = {
111111
email: user.email,

0 commit comments

Comments
 (0)