Replit Auth keeps asking to re-authenticate every hour or so

Hello all! I am using Replit Auth in my app - and for the most part it works well. My issue is that my session does stay logged in for more than a few hours without asking me to re-authenticate. I have asked Agent to update the authentication/session cookie to 30 days, and it says it has done it - but it has not. Does anyone know how I can make my Replit Auth session persistent for say 30 days?

1 Like

I’m having this issue too. The time it takes to get logged out seems very random. Sometimes I go multiple days without being logged out, other times I get logged out multiple times in one day. It does not seem to have anything to do with republishing the app. I’ll get logged out on days where I never republished and I usually stay logged in at least for a little while after I republish. My session TTL is set to 30 days.

You may want to ask the agent to review how cookies are set, and then set the time you want them to be stored to remember the user.