Skip to content

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

Description

@kesarweb

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}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions