diff --git a/token/stateful.go b/token/stateful.go index 1cf0efe..102e535 100644 --- a/token/stateful.go +++ b/token/stateful.go @@ -410,7 +410,7 @@ func (state *state) Expire() error { modified := false for k, t := range state.tokens { - if t.Expires.Before(cutoff) { + if t.Expires != nil && t.Expires.Before(cutoff) { delete(state.tokens, k) modified = true }