Hi @rp_st ,
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_st
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_st
04/13/2023, 12:45 PM
sounds good. thanks
rp_st
04/13/2023, 12:45 PM
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
nim4ze
04/13/2023, 1:58 PM
will update you if it finally worked
r
rp_st
04/13/2023, 1:58 PM
great!
rp_st
04/13/2023, 2:01 PM
you may want to checkout the apiGatewayPath config in the appInfo on the backend.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).