The code works like this
let getToken = await apiCall();
apiCall() calls a few internal functions and populates getToken
apiCall()
getToken