Closed puneetkansal04 closed 3 months ago
Hi @puneetkansal04 👋 Can you please share the original code snippet with your query and the error policy you're using, and also the shape of the response when it throws an unauthorized error?
Possibly related https://github.com/apollographql/apollo-client/issues/11846
We're closing this issue now but feel free to ping the maintainers or open a new issue if you still need support. Thank you!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. For general questions, we recommend using StackOverflow or our discord server.
Issue Description
var data = result.data; result.partial; var resultWithoutPartial = tslib.rest(result, ["data", "partial"]); this.toQueryResultCache.set(result, (queryResult = tslib.assign(tslib.assign(tslib.assign({ data: data }, resultWithoutPartial), this.obsQueryFields), { client: this.client, obser
vable: this.observable, variables: this.observable.variables, called: !this.queryHookOptions.skip, previousData: this.previousData })));
Link to Reproduction
@apollo/client
Reproduction Steps
Getting this issue if I fired an api with the expired token and it throws a error of unauthorised.
@apollo/client
version3.10.4