This interface on JolocomSDK allows to create all sorts of request tokens, and it should probably export a higher level API, suggested to be at the Interaction level.
This would mean export things like sdk.startAuthenticationInteraction() which returns an Interaction loaded with the AuthenticationFlow
instead of sdk.authRequestToken() which returns the token itself and actually starts an interaction in the background
we should be returning the most high level thing that was created in the process, because from the high level thing you can get to the low level thing
The Interaction object returned by a start*Interaction() can return the request token if needed
Description
See https://github.com/jolocom/jolocom-sdk/pull/13#discussion_r425391192
This interface on
JolocomSDK
allows to create all sorts of request tokens, and it should probably export a higher level API, suggested to be at theInteraction
level.This would mean export things like
sdk.startAuthenticationInteraction()
which returns anInteraction
loaded with theAuthenticationFlow
instead of
sdk.authRequestToken()
which returns the token itself and actually starts an interaction in the backgroundwe should be returning the most high level thing that was created in the process, because from the high level thing you can get to the low level thing
The
Interaction
object returned by astart*Interaction()
can return the request token if needed