Fix cached-token expiry handling
Description
Cached token validation is currently buggy when it comes to check expiry times: #153 (closed). This patch should fix the validation and add tests in order to detect any further regressions.
Changes proposed in this merge request:
-
Fix validation of cached-tokens. -
Test cached-token validation. -
Test token expiry.