mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-22 04:23:46 +00:00
make test JWT expire in a minute
This commit is contained in:
parent
78671549c3
commit
b4af648156
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue