resetPassword returns error messages from Magento as they are returned from GraphQL.
Actual Behavior
resetPassword throws a hardcoded error, causing the Alokai Magento SDK to return a generic "Internal Server Error" due to lack of handling for such a case.
Expected Behavior
resetPassword returns error messages from Magento as they are returned from GraphQL.
Actual Behavior
resetPassword throws a hardcoded error, causing the Alokai Magento SDK to return a generic "Internal Server Error" due to lack of handling for such a case.
Possible Solution:
Remove the logic defined in these lines.
https://github.com/vuestorefront/magento2/blob/b8eb1e1fb87f9ee1f71ec621db097de905d6c70b/packages/api-client/src/api/resetPassword/index.ts#L60