Skip to content

Commit b44b4fe

Browse files
committed
feat: specify token expiration
1 parent 4d36186 commit b44b4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth/auth-token.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class AuthTokenService {
1717
const { uuid } = user;
1818
const callback: SignCallback = (err, token) =>
1919
token ? resolve(token) : reject(err);
20-
sign({ uuid }, this.secret, callback);
20+
sign({ uuid }, this.secret, { expiresIn: "7 days" }, callback);
2121
});
2222
}
2323

0 commit comments

Comments
 (0)