Customer account
The authenticate.public.customerAccount function ensures that customer account extension requests are coming from Shopify, and returns helpers to respond with the correct headers.
Authenticates requests coming from Shopify customer account extensions.
- Anchor to requestrequestrequestRequestRequestrequiredrequired
- Anchor to optionsoptionsoptionsAuthenticateCustomerAccountOptionsAuthenticateCustomerAccountOptions
Promise<CustomerAccountContext>Promise<CustomerAccountContext>
AuthenticateCustomerAccountOptions
- corsHeaders
string[]
CustomerAccountContext
Authenticated Context for a customer account extension request
- cors
A function that ensures the CORS headers are set correctly for the response.
EnsureCORSFunction - sessionToken
The decoded and validated session token for the request Refer to the OAuth docs for the [session token payload](https://shopify.dev/docs/apps/auth/oauth/session-tokens#payload).
unknown
EnsureCORSFunction
Was this page helpful?