Sometimes the error property returned on failures from our IDP endpoint is rather generic, and other fields contain important additional information. It would be useful if those fields could be duplicated onto the Error being passed into the Promisereject. I made an (untested) example of how this could be done on a fork in the section of JsonService.js that handles a 400 response. I'd be happy to make these changes myself and open a PR with a little direction on how to contribute and some feedback how to make this feature viable.
Sometimes the
error
property returned on failures from our IDP endpoint is rather generic, and other fields contain important additional information. It would be useful if those fields could be duplicated onto theError
being passed into thePromise
reject
. I made an (untested) example of how this could be done on a fork in the section ofJsonService.js
that handles a400
response. I'd be happy to make these changes myself and open a PR with a little direction on how to contribute and some feedback how to make this feature viable.