mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
update refreshed time on token generation
This commit is contained in:
@@ -38,15 +38,17 @@ export class NotificationService {
|
||||
"kid": keyId,
|
||||
};
|
||||
|
||||
const now = Date.now();
|
||||
const claimsPayload = {
|
||||
"iss": teamId,
|
||||
"iat": Date.now(),
|
||||
"iat": now,
|
||||
};
|
||||
|
||||
this.token = jwt.sign(claimsPayload, privateKey, {
|
||||
algorithm: "ES256",
|
||||
header: tokenHeader
|
||||
});
|
||||
this._lastRefreshedTimeMs = now;
|
||||
}
|
||||
|
||||
private lastReloadedTimeForAPNsIsTooRecent() {
|
||||
|
||||
Reference in New Issue
Block a user