The app shows an error when trying to generate the token on the line:
dialogflow2.accessToken = await dialogflow2.generateAccessToken (clientEmail, privateKey);
using redux and redux-thunk.
I believe it is because the token generation is synchronous.
When I call the component directly, without going through redux, the application works perfectly.
Can you help me with that?