In the async fetch of the AUTH_LOGIN
we want to dispatch an action after we fetch data from additional endpoints (apart from the login endpoint, for example we call another endpoint to bring data for the account, etc.).
We have all in place (action, reducer, used the combineReducers, etc.), but we are not sure how we can "connect" the authClient
function in the authClient.js
file, as this is not a component
in order to use the connect
function.
How could we dispatch
an action then?