alliander-opensource / diva-irma-js

SDK for easy integration of IRMA into projects
BSD 3-Clause "New" or "Revised" License
4 stars 3 forks source link

feat: allow jwt disclosure result to be sent back with disclosure sessions #32

Open koen92 opened 5 years ago

koen92 commented 5 years ago

With this PR, we can send a JWT back to the frontend. This is useful in some cases, for instance when the frontend will redirect to another page with the JWT disclosure result as query parameter.

By default, this feature is turned off, so it won't break any previous applications using this library.

Using this feature in the reference-3p backend is very simple, see this commit: https://github.com/Alliander/diva-js-reference-3p-backend/commit/bfa3647537caa10cfac5e3393f25743052b35903