K
Kinde11mo ago
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
Question: How to get access token outside react component? · Issue ...
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 ...
8 Replies
Oli - Kinde
Oli - Kinde11mo ago
Hi @sak3t, Thanks for reaching out and raising an 'issue' directly on the React SDK GitHub repo. I have passed on your request to my React expert teammate. I saw you said the following on the GitHub issue:
PS: I tried joining the slack community to ask this question but I wasn't able to log in using my personal account. It allows users with domain kinde.com or devsinc.com.
Are you able to share the link you tried to sign-up to the slack community with? And any screenshot showing that sign-up is restricted to "users with domain kinde.com or devsinc.com" would be super helpful.
sak3t
sak3tOP11mo ago
The link is provided in one of the issue templates on Github (see attached image). Url: https://thekindecommunity.slack.com When trying to register to join the slack:
Issue template pointing to slack url
No description
Oli - Kinde
Oli - Kinde11mo ago
Odd. Thanks for sharing this @sak3t
Oli - Kinde
Oli - Kinde11mo ago
Hey @sak3t, I cannot reach the page you explained above where you are prompted to join the Kinde slack community with a @kinde.com or @devsinc.com. Did you click Questions and help from this page?: https://github.com/kinde-oss/kinde-auth-react/issues/new/choose
GitHub
Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
sak3t
sak3tOP11mo ago
Hey @Oli - Kinde, yes Is there any update on getting a token outside the components?
Oli - Kinde
Oli - Kinde11mo ago
Hey @sak3t, Are you able to record a video of you experiencing this issue?: https://discord.com/channels/1070212618549219328/1194134094783713331/1194142302977937418 As I cannot replicate this.
sak3t
sak3tOP11mo ago
Sure, I will.
Oli - Kinde
Oli - Kinde11mo ago
Is there any update on getting a token outside the components?
There is no direct way of getting the access token outside the components without passing it through redux/send it in your http request headers
Want results from more Discord servers?
Add your server