---
title: customerAccessTokenRenew - Storefront API
description: >
  Extends the validity of a
  [`CustomerAccessToken`](/docs/api/storefront/2026-04/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/2026-04/objects/CustomerAccessToken#field-CustomerAccessToken.fields.expiresAt)
  time. If a token has already expired, then use
  [`customerAccessTokenCreate`](/docs/api/storefront/2026-04/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: 2026-04
api_name: storefront
type: mutation
api_type: graphql
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/mutations/customerAccessTokenRenew
  md: >-
    https://shopify.dev/docs/api/storefront/latest/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/2026-04/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/2026-04/objects/CustomerAccessToken#field-CustomerAccessToken.fields.expiresAt) time. If a token has already expired, then use [`customerAccessTokenCreate`](https://shopify.dev/docs/api/storefront/2026-04/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/latest/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/latest/objects/CustomerAccessToken)

  The renewed customer access token object.

* user​Errors

  [\[User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/UserError)

  non-null

  The list of errors that occurred from executing the mutation.

***

## Examples

* ### customerAccessTokenRenew reference
