custom exp and nbf
This commit is contained in:
parent
f2d57c6e18
commit
b4a92fe472
4 changed files with 60 additions and 29 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue