if token.expires is 0, consider it infinite
diff --git a/token.go b/token.go index 4561812..60097c1 100644 --- a/token.go +++ b/token.go
@@ -155,7 +155,7 @@ continue } - if token.ExpiresIn >= 0 { + if token.ExpiresIn > 0 { token.ExpiresAt = time.Now().Add(time.Duration(token.ExpiresIn) * time.Millisecond) } else { // no expiration, arbitrarily expire about a year from now