Returns
string | null — the access token, or null if no customer is logged in or the token has expired.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get the raw Shopify customer access token
openbridge.customer.getToken()
string | null — the access token, or null if no customer is logged in or the token has expired.
const token = openbridge.customer.getToken()
if (token) {
await fetch('/api/sync-profile', {
method: 'POST',
headers: { 'X-Shopify-Customer-Token': token }
})
}