saleor.io-learn icon indicating copy to clipboard operation
saleor.io-learn copied to clipboard

Token not generated when deployed to Saleor, but works on localhost

Open amityweb opened this issue 2 years ago • 0 comments

Following this tutorial works for localhost. I can see the token being generated. https://learn.saleor.io/checkout/checkout-creation/

When I deploy to Vercel the token is not generated.

data returns checkoutcreate that includes the token though, so this code is not picking it up when on vercel, but it does on localhost.

console.log(data)

{
    "checkoutCreate": {
        "checkout": {
            "token": "e2dd379b-b7dc-4619-9853-55cecb607461",
            "__typename": "Checkout"
        },
        "errors": [],
        "__typename": "CheckoutCreate"
    }
}

Is the code example correct?

amityweb avatar Sep 28 '22 08:09 amityweb