Skip to content

Commit

Permalink
resolve issue 181 (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOduneye authored Feb 9, 2024
1 parent 9a5f1f8 commit 5adba7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/auth/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func CreateAccessToken(id string, role string, accessExpiresAfter uint, accessTo
StandardClaims: jwt.StandardClaims{
IssuedAt: time.Now().Unix(),
Issuer: id,
ExpiresAt: time.Now().Add(time.Duration(accessExpiresAfter)).Unix(),
ExpiresAt: time.Now().Add(time.Hour * time.Duration(accessExpiresAfter)).Unix(),
},
Role: role,
})
Expand Down

0 comments on commit 5adba7e

Please sign in to comment.