how to reset resolve or Promise after the first resolve so that the next resolve has output
I am writing login operations, and sometimes I encounter login failures. You need to reset resolve or Promise, so that you can have resolve when you initiate a login request again
however, after the first resolve, the second time and more, you can no longer resolve.
.how do I reset resolve/Promise?