https://supertokens.com/ logo
frequent logout issue
n

nim4ze

04/13/2023, 12:40 PM
Hi @rp , We have a problem where we are being logged out quite often and are not sure why. One issue might be that we run super tokens in k8s and have multiple pods running against the same database. Is that a problem from your experience ?
r

rp

04/13/2023, 12:41 PM
this should not be a problem. Can you give us more details about the behaviour you notice?
n

nim4ze

04/13/2023, 12:45 PM
Ok thank you for the clarification. I’ll gather a bit more data points and let you know
r

rp

04/13/2023, 12:45 PM
sounds good. thanks
what would be helpful for us: - Is session refreshing working as expected? - Can you reliably reproduce the issue? - The frontend and backend config for appInfo object and session.init config.
n

nim4ze

04/13/2023, 1:58 PM
i think we mightve just fixed it - sorry for bothering. the problem was probably that we use a reverse proxy for our API in prod and the cookie which is set by supertokens didn't include the
path
of the proxy. we fixed it by setting the
proxy_cookie_path
in the nginx config to rewrite the paths set in the cookie
will update you if it finally worked
r

rp

04/13/2023, 1:58 PM
great!
you may want to checkout the apiGatewayPath config in the appInfo on the backend.