sak3t
KKinde
•Created by sak3t on 1/9/2024 in #💻┃support
Decoupling API calls with react components
I have one doubt about react sdk (and I opened an issue: https://github.com/kinde-oss/kinde-auth-react/issues/39 on the github repository). I want to get the access token for each request that goes to my API (For example in an http interceptor). I don't want send API requests in my react components. I, suppose, use redux to send http requests. How do I get the access token outside of the react component? I couldn't find a way, as react SDK exposes just the react hook to interact with Kinde.
10 replies