Currently credential validation in the context of the Credential Offer flow happens at two points: inside handleCredentialsReceive (where the validity of the SignedCredential is checked with JolocomLib.parseAndValidate.signedCredential and the validity state is updated) and in getIssuanceResult (which is called manually and returns the issued credentials along with the validity of the subject and issuer fields). In the second case the validity state is not updated, causing interaction.storeSelectedCredentials to fail due to storing credentials with bad subject and issuer.
Currently credential validation in the context of the Credential Offer flow happens at two points: inside
handleCredentialsReceive
(where the validity of theSignedCredential
is checked withJolocomLib.parseAndValidate.signedCredential
and the validity state is updated) and ingetIssuanceResult
(which is called manually and returns the issued credentials along with the validity of thesubject
andissuer
fields). In the second case the validity state is not updated, causinginteraction.storeSelectedCredentials
to fail due to storing credentials with badsubject
andissuer
.