KindeK
Kinde3y ago
9 replies
sak3t

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.
GitHub
Prerequisites I have searched the repository’s issues and the Kinde community to ensure my documentation issue isn’t a duplicate I have read the contributing guidelines I agree to the terms within ...
Question: How to get access token outside react component? · Issue ...
Was this page helpful?