Currently there is no way to distiguish between user canceled and canceled from an error. Adding the error description allows for a better user experience.
[x] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
[x] All existing tests are passing
[x] Tests for the changes are included
What is the current behavior?
Currently when openAuth is terminated by error or by the user hitting cancel, the result is the same and type: cancel is returned
Example - {"type":"cancel"}
What is the new behavior?
This change simply adds the error description if it exists so a better user experience can be achieved.
Example - {"type":"cancel","description":"The UIWindowScene for the returned window was not in the foreground active state."}
Currently there is no way to distiguish between user canceled and canceled from an error. Adding the error description allows for a better user experience.
PR Checklist
What is the current behavior?
Currently when openAuth is terminated by error or by the user hitting cancel, the result is the same and type: cancel is returned Example - {"type":"cancel"}
What is the new behavior?
This change simply adds the error description if it exists so a better user experience can be achieved. Example - {"type":"cancel","description":"The UIWindowScene for the returned window was not in the foreground active state."}
Fixes/Implements/Closes #[Issue Number].