you need to use some information in openid and userinfo to obtain token, so app.js needs to wait for these two APIs to get data before sending a request to acquire token. But what if you need to send a request and need token, as soon as you enter Mini Program"s home page, but what if you haven"t got token yet?
my current practice is to load wx.showLoading for three seconds in onLoad when I enter the home page, and then perform the operation, but sometimes I can"t guarantee that three seconds is enough. Is there a better way