Can I get Customer ID from cookie?

Topic summary

A shop owner building a custom theme wants to add a product review feature and is concerned about authentication. They note Shopify Liquid (the theme templating language) exposes customer ID, but consider it “raw data” and want a more secure/encoded approach.

They discovered the secure_customer_sig value (likely a cookie) and want to use it server-side (on their product-review storage server) to derive the customer ID, but cannot currently use or decode it. They are asking for documentation or guidance on this use case.

Key needs:

  • Securely authenticate customers for submitting reviews.
  • Obtain a reliable customer ID on the backend without exposing raw identifiers in the frontend.
  • Understand whether and how secure_customer_sig can be used to extract customer identity.

Status: No solution or documentation provided in the thread yet; the question remains open with unanswered implementation details.

Summarized with AI on February 23. AI used: gpt-5.

Hello, I developed custom theme for only my shop.

I want add product review, But I worried about auth.

I know that shopify-liquid provide customer ID,

But It is raw-data. I want secured, or Encoded Data & Auth System.

So, I found [secure_customer_sig], but I can’t use this value. ( i want get customer ID from secure_customer_sig, in my product-review-stored-server )

Is there document about this case?

1 Like