await不是应该等待请求完成吗?async function importUsers(endpoint) { data: search, headers, const collection = await browser.post(options, (err, res,// collection is the request ob
我有这个函数: const getMyAttribute = async (): string => {
const userInfo = await Auth.currentUserInfo();test.cl", "sub": "etc..."}, ... rest of user info data from Cognito} 因此,在调用该函数时,我在myAttribute中得到了一些奇怪的输出