Skip to content

Add Customer Impersonation Token to ENV#17

Merged
bc-alexsaiannyi merged 1 commit intomainfrom
token
Jun 23, 2023
Merged

Add Customer Impersonation Token to ENV#17
bc-alexsaiannyi merged 1 commit intomainfrom
token

Conversation

@bc-alexsaiannyi
Copy link
Copy Markdown
Collaborator

What/Why

Previously, we've auto generated a Customer Impersonation Token (CIT) on each GraphQL request within
bigCommerceFetch method. Now we change the logic and move this step on the side of User. That means from now on User should generate CIT by himself/herself and put it on .env file and regenerate once it is going to expire. README is updated with link to our docs how to generate CIT via endpoint.

Additionally, revalidate option has been removed from fetching so only cache: force-cache option is stayed in place. This removes next warning:

Warning: fetch for https://store-xxx.mybigcommerce.com/graphql on ... specified "cache: force-cache" and "revalidate: 900", only one should be specified.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextjs-commerce ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2023 10:35am

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

Successfully merging this pull request may close these issues.

3 participants