For a long-running nextJs page that polls the backend periodically, any suggestions as to how I shou...
a
For a long-running nextJs page that polls the backend periodically, any suggestions as to how I should refresh the session so the APIs calls don't start failing?
r
Hey @ansont
Refreshing of session should happen on its own in case the api retune a 401. Is that not happening?
a
I'm using an apollo-client on Next.JS application. It does not appear to be intercepted and refresh not called.
r
What’s the apiDomain that you set on the frontend? And what domain is the Apollo client querying?
a
export const appInfo = { appName: 'example', websiteDomain: 'https://localhost.ansont.dev', apiDomain: 'https://localhost.ansont.dev', apiBasePath: '/api', }
r
whats domain is apollo client querying?