Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
feat: update access token for demo instance (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucmus authored Apr 15, 2020
1 parent 1c77b1f commit e4f1205
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHEATSHEET.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Now you have complete ShopwarePWA project running locally
```
module.exports = {
shopwareEndpoint: "https://shopware-2.vuestorefront.io",
shopwareAccessToken: "SWSCMUDKAKHSRXPJEHNOSNHYAG"
shopwareAccessToken: "SWSCTXJOZMQWCXA4OUTNZ0REYG"
};
```

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Another way of doing this:
```js
module.exports = {
shopwareEndpoint: "https://shopware-2.vuestorefront.io",
shopwareAccessToken: "SWSCMUDKAKHSRXPJEHNOSNHYAG"
shopwareAccessToken: "SWSCTXJOZMQWCXA4OUTNZ0REYG"
};
```

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/extensions/shopware-pwa-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GluegunToolbox } from "gluegun";

const defaultConfig = {
shopwareEndpoint: "https://shopware-2.vuestorefront.io",
shopwareAccessToken: "SWSCMUDKAKHSRXPJEHNOSNHYAG",
shopwareAccessToken: "SWSCTXJOZMQWCXA4OUTNZ0REYG",
};
// add your CLI-specific functionality here, which will then be accessible
// to your commands
Expand Down
2 changes: 1 addition & 1 deletion packages/default-theme/plugins/api-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default ({ app, store }) => {
*/
setup({
endpoint: 'https://shopware-2.vuestorefront.io/sales-channel-api/v1',
accessToken: 'SWSCMUDKAKHSRXPJEHNOSNHYAG',
accessToken: 'SWSCTXJOZMQWCXA4OUTNZ0REYG',
contextToken
})
/**
Expand Down
6 changes: 3 additions & 3 deletions packages/shopware-6-client/__tests__/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ describe("Settings", () => {

it("should have default config with empty invocation", () => {
update();
expect(config.accessToken).toEqual("SWSCMUDKAKHSRXPJEHNOSNHYAG");
expect(config.accessToken).toEqual("SWSCTXJOZMQWCXA4OUTNZ0REYG");
expect(config.contextToken).toEqual("");
});

it("should change defaultPaginationLimit", () => {
update({ defaultPaginationLimit: 50 });
expect(config.accessToken).toEqual("SWSCMUDKAKHSRXPJEHNOSNHYAG");
expect(config.accessToken).toEqual("SWSCTXJOZMQWCXA4OUTNZ0REYG");
expect(config.defaultPaginationLimit).toEqual(50);
});

it("should change default timeout", () => {
update({ timeout: 50 });
expect(config.accessToken).toEqual("SWSCMUDKAKHSRXPJEHNOSNHYAG");
expect(config.accessToken).toEqual("SWSCTXJOZMQWCXA4OUTNZ0REYG");
expect(config.timeout).toEqual(50);
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/shopware-6-client/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface ClientSettings {

const defaultConfig: ClientSettings = {
endpoint: "https://shopware-2.vuestorefront.io/sales-channel-api/v1",
accessToken: "SWSCMUDKAKHSRXPJEHNOSNHYAG",
accessToken: "SWSCTXJOZMQWCXA4OUTNZ0REYG",
contextToken: "",
defaultPaginationLimit: 10,
timeout: 3000, // ms
Expand Down

0 comments on commit e4f1205

Please sign in to comment.