Access token not defined

I get the following error in res.console : “Uncaught (in promise) ReferenceError: access_token is not defined.” Apparently the token is not picked up, possibly because it is not global: if so, how do I make it global here?

Here a screenshot of the code.

I expect to be able to pick up and use the access token which was returned in a previous fetch in order to be able fetch other data.