Skip to main content
Synchronously checks whether a valid (non-expired) customer access token is stored locally. Does not make a network request.

Returns

boolean — true if a non-expired access token is present, false otherwise.

Examples

Conditional UI rendering

Protecting an action

This check is purely local — it only verifies a token exists and has not expired. To validate the session against Shopify, call customer.get().