The goal of this topic is to explain how the authentication renewal process works for a logged-in user on a VTEX store, as well as how to extend that timeframe. To learn more about general aspects of the authentication process, I recommend reading the following documentation: https://developers.vtex.com/docs/guides/api-authentication-using-user-tokens
Considering the context of user authentication on the store front, there are two cookies related to the login session in the store:
VtexidClientAutCookie_{{account}}- always expires in 24 hours.vid_rt- the refresh token that expires in 7 days by default.
Session login supports up to 30 days across all our online stores (IO and Portal). This means that a user who authenticates once in your account can go up to 30 days without renewing that authentication and remain logged in.
Client credential cookies are renewed periodically. However, it is configurable for this renewal to happen every 1/7/30 days.
To request a change to the session duration, you need to open a ticket with our support team at the following link: https://help.vtex.com/support?/cultureInfo=pt-br
Note that this authentication persistence flow does not work in a headless manner, meaning it will not work on fronts that are not VTEX-native and/or mobile apps.
If you still have any questions about this topic, feel free to ask here! We’d be happy to answer and help you out!