Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Error handling when starting IRMA sessions in irma-client can be more flexible #49

Open
ivard opened this issue May 7, 2021 · 0 comments

Comments

@ivard
Copy link
Member

ivard commented May 7, 2021

When using the session: { start: ... } option in irma-client it is not possible to do nice error handling on custom errors.

Possible options are:

  • Not using the start option and do a manual mapping; disadvantage is that the 'Try again' button will disappear on Error/Cancelled/Timeout.
  • Not using the session option at all and start the session manually in a custom plugin (by saying session: false and handle the skipped transitions related to session manually in a custom plugin
  • Returning the error that happens when rejecting the start() Promise.

A low-effort third option is missing, this can be improved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant