Hey,
Developing Customer Account UI Extension using official docs and I cannot get “sub” claim in session token. Before I receive standard “redeploy & reinstall it” response - done it multiple times already, did not make any difference.
I have specified “read_customers” scopes in app’s TOML file:
...
[access_scopes]
scopes = "read_customers"
...
I have specified below configuration in extension’s TOML file:
...
[extensions.capabilities]
api_access = true
network_access = true
...
And when executing below snippet:
...
import { useApi } from "@shopify/ui-extensions-react/customer-account";
const { sessionToken } = useApi();
sessionToken.get().then(token => console.log("Token:", token));
...
and decoding with jwt.io, it does not contain “sub” claim that should contain customer’s ID as described in docs here and here.
