make test JWT expire in a minute

This commit is contained in:
grumbulon 2023-01-30 23:24:44 -05:00
parent 78671549c3
commit b4af648156

View file

@ -39,7 +39,7 @@ type accountTest struct {
func makeTestToken(username string) (tokenString string, err error) {
claim := map[string]interface{}{"username": username, "admin": false}
jwtauth.SetExpiry(claim, time.Now().Add(time.Hour))
jwtauth.SetExpiry(claim, time.Now().Add(time.Minute))
if _, tokenString, err = tokenAuth.Encode(claim); err == nil {
return