Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{{apiToken}} from src\templates\subscribe-and-save-widget.hbs isn't properly mapped causing error #25

Open
kesarweb opened this issue Feb 1, 2023 · 0 comments

Comments

@kesarweb
Copy link

kesarweb commented Feb 1, 2023

On the front end when PDP needs to load a subscription there is an error {"errors":[{"message":"GraphQL invalid credentials. String is not a JWT"}]}

query:
"query Product( $productId: Int = 97, $namespace: String = "Stripe Billing", $subscription_config: String = "subscription_config") { site { product(entityId: $productId) { name variants { edges { node { sku metafields(namespace: $namespace, keys: [$subscription_config] ) { edges { node { key value } } } } } } } } }"

Issue is that the script injected {{apiToken}} as null from src\templates\subscribe-and-save-widget.hbs
but it needs to be {{settings.storefront_api.token}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant