Skip to content

Commit ab3b4b1

Browse files
authored
Merge pull request #7 from MihaelIsaev/MihaelIsaev-patch-1
This is fixing unexpected behavior when the server is unable to send pushes after an hour after launch.
2 parents 351f527 + 3a1fc07 commit ab3b4b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/FCM/Helpers/FCM+JWT.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import JWT
44

55
extension FCM {
66
func generateJWT() throws -> String {
7+
gAuthPayload.update()
78
let pk = try RSAKey.private(pem: key)
89
let signer = JWTSigner.rs256(key: pk)
910
let jwt = JWT<GAuthPayload>(payload: gAuthPayload)

0 commit comments

Comments
 (0)