custom exp and nbf

This commit is contained in:
ston1th 2018-09-13 13:27:32 +02:00
commit b4a92fe472
4 changed files with 60 additions and 29 deletions

View file

@ -47,6 +47,7 @@ func TestValidate(t *testing.T) {
t.Error(errors.New("token is expired"))
}
nt.Claims.Delete(ExpClaim)
err = jwt.Sign(nt)
if err != nil {
t.Error(err)