Make token expiration backwards compatible with numeric `when`.