Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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
Community Manager
3108 344 892

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