there are many methods in the project to request the interface, and sometimes the token expires, so it needs to be judged and processed in each method. Is there any way for node.js to obtain the response, uniformly and then deal with it?
the foreground ajax requests the node interface. Node uses superagent to request the API interface. API returns Token expiration. Can superagent handle it uniformly at this time