iTwin / auth-clients

MIT License
6 stars 3 forks source link

`ElectronMainAuthorization.signIn` throws uncatchable error when `tokenUrl` server errors #226

Closed johnnyd710 closed 9 months ago

johnnyd710 commented 9 months ago

Execution flow for our Electron App:

Ideally, I'd like the signIn() to resolve or reject once the entire sign in process is complete, not just after starting the process, that way our frontend can properly react to events or errors. If not that is not possible, at the very least there should at least be a way for our backend to catch the signIn() errors initiated through IPC by the frontend, or an event we can hook into, so we can tell the frontend ourselves.

Happy to look into this.

ben-polinsky commented 9 months ago

Happy to look into this.

Sure, and thanks for the report.