jolocom / jolocom-lib

Library for interacting with the identity solution provided by Jolocom.
MIT License
24 stars 18 forks source link

Add Interaction token type constant inside the JWT message payload #413

Closed mnzaki closed 4 years ago

mnzaki commented 4 years ago

This simplifies life in SDK internals, at the lower ("purer") layers of the InteractionManager after the JWT is peeled away. The the message ("JWT payload") lacks any type information, creating a need to pass the type around along with the actual message ("token"), and also creating an unnecessary need for typescript guards and what not.

This is not a full solution yet though, but a first step