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