Skip to content

Commit d8f7e84

Browse files
glo11372glo82145
andauthored
PWA-3154:GraphQL cacheable requests always have Authorization Bearer … (#4240)
* PWA-3154:GraphQL cacheable requests always have Authorization Bearer header * PWA-3154:Removing Commented lines * Update index.spec.js.snap * Update index.spec.js.snap --------- Co-authored-by: Aanchal Pawar <[email protected]>
1 parent 5ea25f7 commit d8f7e84

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

packages/peregrine/lib/Apollo/links/__tests__/__snapshots__/index.spec.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ exports[`returns a map with expected keys and values 1`] = `
44
Map {
55
"MUTATION_QUEUE" => "mutationQueue",
66
"RETRY" => "retry",
7-
"AUTH" => "auth",
87
"GQL_CACHE" => "gqlCache",
98
"STORE" => "store",
109
"ERROR" => "error",

packages/peregrine/lib/Apollo/links/__tests__/index.spec.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ jest.mock('@apollo/client', () => ({
77
__esModule: true,
88
createHttpLink: jest.fn(() => 'http')
99
}));
10-
jest.mock('@magento/peregrine/lib/Apollo/links/authLink', () => ({
11-
__esModule: true,
12-
default: jest.fn(() => 'auth')
13-
}));
1410
jest.mock('@magento/peregrine/lib/Apollo/links/errorLink', () => ({
1511
__esModule: true,
1612
default: jest.fn(() => 'error')

packages/peregrine/lib/Apollo/links/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { createHttpLink } from '@apollo/client';
22

3-
import createAuthLink from '@magento/peregrine/lib/Apollo/links/authLink';
43
import createErrorLink from '@magento/peregrine/lib/Apollo/links/errorLink';
54
import createGqlCacheLink from '@magento/peregrine/lib/Apollo/links/gqlCacheLink';
65
import createMutationQueueLink from '@magento/peregrine/lib/Apollo/links/mutationQueueLink';
@@ -32,7 +31,6 @@ export const customFetchToShrinkQuery = (uri, options) => {
3231
};
3332

3433
const getLinks = apiBase => {
35-
const authLink = createAuthLink();
3634
const storeLink = createStoreLink();
3735
const errorLink = createErrorLink();
3836
const retryLink = createRetryLink();
@@ -54,7 +52,6 @@ const getLinks = apiBase => {
5452
const links = new Map()
5553
.set('MUTATION_QUEUE', mutationQueueLink)
5654
.set('RETRY', retryLink)
57-
.set('AUTH', authLink)
5855
.set('GQL_CACHE', gqlCacheLink)
5956
.set('STORE', storeLink)
6057
.set('ERROR', errorLink)

0 commit comments

Comments
 (0)