Currently, the validation of a token's expiry date happens when it is decoded / used to instantiate a JSONWebToken class. Other validation logic (i.e. signature, nonce, aud) happens in identityWallet.validateJWT.
We can move the check for the expiry date to the aforementioned function as well, this way expired tokens can still be decoded for debugging purposes, and all validation logic is delegated to the validateJWT function.
Description
Currently, the validation of a token's expiry date happens when it is decoded / used to instantiate a
JSONWebToken
class. Other validation logic (i.e. signature, nonce, aud) happens inidentityWallet.validateJWT
.We can move the check for the expiry date to the aforementioned function as well, this way expired tokens can still be decoded for debugging purposes, and all validation logic is delegated to the
validateJWT
function.