Is it safe to add a Bearer token to the QueryClient cache? #4084
Unanswered
Victor-Villacis
asked this question in
Q&A
Replies: 1 comment 1 reply
-
tokens and authentication is usually something that you handle on the layer that actually makes the request (axios, fetch, whatever). There is no need to involve react-query. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to provide headers that pass the functions
getIdToken()
getJwtToken()
Which authorizes and passes in my Bearer token in order validate my api that I have set up in AWS. That way its available throughout the application. What is the best practice in which this is done?
Beta Was this translation helpful? Give feedback.
All reactions