--- title: customerAccessTokenRenew - Storefront API description: > Extends the validity of a [`CustomerAccessToken`](/docs/api/storefront/unstable/objects/CustomerAccessToken) before it expires. The renewed token maintains authenticated access to customer operations. Renewal must happen before the token's [`expiresAt`](/docs/api/storefront/unstable/objects/CustomerAccessToken#field-CustomerAccessToken.fields.expiresAt) time. If a token has already expired, then use [`customerAccessTokenCreate`](/docs/api/storefront/unstable/mutations/customerAccessTokenCreate) to generate a new token with the customer's credentials. > Caution: > Store access tokens securely. Never store tokens in plain text or insecure locations, and avoid exposing them in URLs or logs. api_version: unstable api_name: storefront source_url: html: >- https://shopify.dev/docs/api/storefront/unstable/mutations/customerAccessTokenRenew md: >- https://shopify.dev/docs/api/storefront/unstable/mutations/customerAccessTokenRenew.md --- # customer​Access​Token​Renew mutation Requires `unauthenticated_write_customers` access scope. Extends the validity of a [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/unstable/objects/CustomerAccessToken) before it expires. The renewed token maintains authenticated access to customer operations. Renewal must happen before the token's [`expiresAt`](https://shopify.dev/docs/api/storefront/unstable/objects/CustomerAccessToken#field-CustomerAccessToken.fields.expiresAt) time. If a token has already expired, then use [`customerAccessTokenCreate`](https://shopify.dev/docs/api/storefront/unstable/mutations/customerAccessTokenCreate) to generate a new token with the customer's credentials. *** **Caution:** Store access tokens securely. Never store tokens in plain text or insecure locations, and avoid exposing them in URLs or logs. *** ## Arguments * customer​Access​Token [String!](https://shopify.dev/docs/api/storefront/unstable/scalars/String) required The access token used to identify the customer. *** ## Customer​Access​Token​Renew​Payload returns * customer​Access​Token [Customer​Access​Token](https://shopify.dev/docs/api/storefront/unstable/objects/CustomerAccessToken) The renewed customer access token object. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### customerAccessTokenRenew reference