From 764a7cbdafa7a40870b7002fd427cc686317dfce Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 13 Feb 2024 20:53:38 -0500 Subject: [PATCH] feat: add iat to jwt --- account/jwt.go | 1 + 1 file changed, 1 insertion(+) diff --git a/account/jwt.go b/account/jwt.go index a847606..fadb8ad 100644 --- a/account/jwt.go +++ b/account/jwt.go @@ -15,6 +15,7 @@ func GenerateTokenWithDuration(domain string, privateKey ed25519.PrivateKey, use "iss": domain, "sub": userID, "exp": time.Now().Add(duration).Unix(), + "iat": time.Now().Unix(), } // Create the token