I am fetching an id token using auth0 react SDK which returns a promise and then it gets resolved. At the same time, I m using an apollo use query to fetch data but the query also requires that token to return data. How to run the query only after the token is return by auth0?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
React: querying with variables | 2 | 117 | June 29, 2024 | |
How can I leverage async await functionality in apollo client? | 1 | 888 | February 6, 2025 | |
Apollo Server getting Auth0 token as undefined | 17 | 1373 | February 6, 2025 | |
I have to fetch data from the api with graphql query by passing the variables | 1 | 382 | February 14, 2023 | |
Next.js 14, Apollo and .graphql files | 1 | 38 | January 10, 2025 |