You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with this one is that the original code never resolves or rejects the promise in case of errors. This is by itself incorrect. When converting this to async/await the promise will always be either resolved or rejected. This results in unwanted redirection to home in case of an error (because the error is not propagated, hence the promise gets resolved). This can be fixed by re-throwing the error from the catch block and swallowing it here like this:
Issue Summary:
In the auth.module.js here you have got some code like:
Those promise calls could be simpliefied with async and await calls.
Resources:
Acceptance Criteria:
.then(...
or.catch(...
block or any promise like structureMain issue is here #5
The text was updated successfully, but these errors were encountered: