{"section":"announcements","requestedLocale":"en","requestedSlug":"2026-10-16-persistent-login-set-how-long-your-customers-stay-authenticated","locale":"en","slug":"2026-10-16-persistent-login-set-how-long-your-customers-stay-authenticated","path":"docs/en/announcements/2026/october/2026-10-16-persistent-login-set-how-long-your-customers-stay-authenticated.md","branch":"main","content":"You can now set how many days your customers stay authenticated in your online store, from **1 to 365 days**, with **persistent login**. This way, they don't need to log in again every 24 hours. You configure this directly on the **Authentication** page in the VTEX Admin, with no need to open a ticket with VTEX Support.\n\n![Persistent login card on the Authentication page in the VTEX Admin](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/announcements/2026/october/2026-10-16-persistent-login-set-how-long-your-customers-stay-authenticated_1.png)\n\n## What has changed?\n\nBy default, customers' login sessions in the online store expire after 24 hours. Previously, extending this period required opening a ticket with VTEX Support to request activation of the refresh token and set the expiration time, which could only be 1, 7, or 30 days. Now, with persistent login enabled, in addition to the access cookie, which keeps its fixed duration of 24 hours, the platform issues a refresh token that renews the customer's access without requiring a new login, for the period you configure.\n\nHere's how the feature behaves:\n\n* Persistent login is optional and is disabled by default. If you don't configure anything, your store's behavior doesn't change, and customer sessions continue to expire after 24 hours.\n* The duration can be any integer number of days, from **1** to **365**. The first time you enable the feature, the default duration is **1 day**.\n* Changes, including disabling the feature, apply only to new logins. Active sessions aren't affected.\n* This setting affects only customer sessions in the online store. Admin user login in the VTEX Admin doesn't change.\n\n## Why did we make this change?\n\nWith this change, you have more autonomy and flexibility to balance convenience and security in your store. By choosing the period that best fits your business, you reduce the need for new logins and improve your customers' shopping experience.\n\n## What needs to be done?\n\nTo use persistent login, enable the feature in the VTEX Admin. Depending on your storefront's technology, you might also need to complete additional steps for customer access renewal to work.\n\n### Enable persistent login\n\nTo enable or change persistent login, the user must have a [role](https://help.vtex.com/en/docs/tutorials/roles) with the **Write Account Config** resource, in the Account Configuration category of the VTEX ID product.\n\nPersistent login only starts working once you enable it. To configure it, follow the steps below:\n\n1. In the VTEX Admin, go to **Account settings > Authentication**.\n2. On the **Webstore** tab, find the **Persistent login** card and click the toggle to enable the feature.\n3. To change the duration, click `Edit`, enter an integer between **1** and **365** days in the **Session duration** field, and click `Save`.\n\n![Persistent login duration setting window](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/announcements/2026/october/2026-10-16-persistent-login-set-how-long-your-customers-stay-authenticated_2.png)\n\nLearn more in [Configuring persistent login for customers](https://help.vtex.com/en/docs/tutorials/configuring-persistent-login-for-customers).\n\n### Additional steps by store type\n\nAfter enabling persistent login, check whether your store needs any additional steps. What changes is how customer access is renewed, which depends on the storefront's technology.\n\nIn stores using [Store Framework](https://developers.vtex.com/docs/guides/store-framework) or [CMS Portal (Legacy)](https://help.vtex.com/en/docs/tracks/legacy-cms-portal), you only need to enable persistent login in the VTEX Admin, since customer access renewal in the store is automatic.\n\nIn headless stores, in addition to enabling persistent login in the VTEX Admin, you need to implement customer access renewal through the VTEX ID APIs. The developer guide [Refresh token flow for headless implementations](https://developers.vtex.com/docs/guides/refresh-token-flow-for-headless-implementations) explains how to do this.\n\nIf your store uses FastStore, in addition to enabling persistent login in the VTEX Admin, you need to enable the refresh token in your project, as described in [Enabling refresh token on FastStore](https://developers.vtex.com/docs/guides/faststore/session-enabling-refresh-token)."}