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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Delegated token with Storefront API to access to protected metafields?

Delegated token with Storefront API to access to protected metafields?

etrolmos
Shopify Partner
27 1 5

Is it possible to have something like a protected/authenticated metafields for Storefront API using a delegated token?

 

Main use-case is for server-side rendering of a page that needs access to metafields we don't want to be public, if possible. Main use-case for the Storefront API is to not be rate limited for non-admin requests.

 

Private metafields are too limited with only 10 allowed per resource. Unlike private metafields we might also want them editable by the Shopify admin/staff in some cases. That also rules out app-owned metafields.

 

Of course we could store the metafields outside of Shopify but it's nice to keep it within Shopify, and to also retrieve them with in the same API call.

Replies 0 (0)