is there a storefront endpoint to figure out whether your theme is password protected?

mitchellD
New Member
6 0 0

is there a storefront endpoint to figure out whether your theme is password protected?

this is the only thing holding me back with headless Shopify builds.

0 Likes
_JCC_
Shopify Staff
Shopify Staff
139 20 26

Hey @mitchellD ,

Happy to help you out with this issue. Our REST Shop endpoint exposes the field password_enabled, which if true indicates the current main theme is password protected. That being said, I'm not completely sure in a headless context it's what you might be looking for.

If you have any other questions please don't hesitate to reach out.

Regards,

John

John C | Developer Support @ 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

0 Likes
mitchellD
New Member
6 0 0

I'm having a lot of trouble trying to reach this data in my react app. how do I go about this without throwing any cors errors? I'm guessing with a node server but I can't seem to find any resources that help to set that up. (i'm using a private app)

0 Likes