Could you not also use `dateFromUnixTime` here for `issuedOn` and `expires`? (Particularly if it accepted an optional default.)