feat: add iat to jwt

This commit is contained in:
Derrick Hammer 2024-02-13 20:53:38 -05:00
parent 171b810504
commit 764a7cbdaf
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -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