Customer access token expiry time

Customer access token expiry time

Dev110
Shopify Partner
3 0 0

Hello,

We are currently encountering an issue with customer access tokens within our Shopify storefront. Our website operates without a session time functionality. When a user logs in, we create a customer access token using their username or password. However, after a span of 4 to 7, when attempting to add an item to the cart, we are receiving an error stating "Customer Is Invalid."

We suspect this error might be due to the expiration of the customer access token. Could someone kindly clarify the duration for which a customer access token remains valid before expiration? Understanding this time frame will help us address the issue more effectively.

Reply 1 (1)

Liam
Shopify Staff
2873 312 821

Hi Dev110,

 

Just to confirm - are you seeing customer access tokens expire after a span of 4 to 7 days? You should also be able to query a customers access token to see when it will expire.  

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog