https://supertokens.com/ logo
Title
a

ansont

01/24/2023, 10:03 PM
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

rp

01/25/2023, 5:03 AM
Hey @ansont
Refreshing of session should happen on its own in case the api retune a 401. Is that not happening?
a

ansont

02/06/2023, 7:12 PM
I'm using an apollo-client on Next.JS application. It does not appear to be intercepted and refresh not called.
r

rp

02/07/2023, 3:41 AM
What’s the apiDomain that you set on the frontend? And what domain is the Apollo client querying?
a

ansont

02/07/2023, 5:51 PM
export const appInfo = { appName: 'example', websiteDomain: 'https://localhost.ansont.dev', apiDomain: 'https://localhost.ansont.dev', apiBasePath: '/api', }
r

rp

02/07/2023, 8:21 PM
whats domain is apollo client querying?