Skip to content

Commit

Permalink
fix: Message handler chain
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed May 25, 2020
1 parent 09dc094 commit 58b0629
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/rest-api/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import Debug from 'debug'
Debug.enable('*')

const messageHandler = new DIDCommMessageHandler()
messageHandler.setNext(new JwtMessageHandler())
messageHandler.setNext(new W3cMessageHandler())
messageHandler.setNext(new JwtMessageHandler()).setNext(new W3cMessageHandler())

const actionHandler = new DIDCommActionHandler()
actionHandler.setNext(new W3cActionHandler())
Expand Down

0 comments on commit 58b0629

Please sign in to comment.