@okta/okta-react in my React app. I understand the use of the
withAuth() higher-order component. With it, I can fetch the user via
getUser() within my component. And I’ve verified it works just as expected.
However, what if I want to fetch the user within Redux? Specifically, I’m using Redux Saga to handle all my asynchronous API calls. Is there some way to call one of
okta-react's library functions such as
getUser() from a Saga?
The basic issue is, I don’t want to handle my async calls within my component, but rather elsewhere, and I don’t see a way with the library.