diff --git a/packages/peregrine/lib/Apollo/links/__tests__/__snapshots__/index.spec.js.snap b/packages/peregrine/lib/Apollo/links/__tests__/__snapshots__/index.spec.js.snap index 1b3428cfe5..e9eb130057 100644 --- a/packages/peregrine/lib/Apollo/links/__tests__/__snapshots__/index.spec.js.snap +++ b/packages/peregrine/lib/Apollo/links/__tests__/__snapshots__/index.spec.js.snap @@ -4,7 +4,6 @@ exports[`returns a map with expected keys and values 1`] = ` Map { "MUTATION_QUEUE" => "mutationQueue", "RETRY" => "retry", - "AUTH" => "auth", "GQL_CACHE" => "gqlCache", "STORE" => "store", "ERROR" => "error", diff --git a/packages/peregrine/lib/Apollo/links/__tests__/index.spec.js b/packages/peregrine/lib/Apollo/links/__tests__/index.spec.js index 7185d08491..bf287a6277 100644 --- a/packages/peregrine/lib/Apollo/links/__tests__/index.spec.js +++ b/packages/peregrine/lib/Apollo/links/__tests__/index.spec.js @@ -7,10 +7,6 @@ jest.mock('@apollo/client', () => ({ __esModule: true, createHttpLink: jest.fn(() => 'http') })); -jest.mock('@magento/peregrine/lib/Apollo/links/authLink', () => ({ - __esModule: true, - default: jest.fn(() => 'auth') -})); jest.mock('@magento/peregrine/lib/Apollo/links/errorLink', () => ({ __esModule: true, default: jest.fn(() => 'error') diff --git a/packages/peregrine/lib/Apollo/links/index.js b/packages/peregrine/lib/Apollo/links/index.js index 1a6bf48b1e..3519d594d3 100644 --- a/packages/peregrine/lib/Apollo/links/index.js +++ b/packages/peregrine/lib/Apollo/links/index.js @@ -1,6 +1,5 @@ import { createHttpLink } from '@apollo/client'; -import createAuthLink from '@magento/peregrine/lib/Apollo/links/authLink'; import createErrorLink from '@magento/peregrine/lib/Apollo/links/errorLink'; import createGqlCacheLink from '@magento/peregrine/lib/Apollo/links/gqlCacheLink'; import createMutationQueueLink from '@magento/peregrine/lib/Apollo/links/mutationQueueLink'; @@ -32,7 +31,6 @@ export const customFetchToShrinkQuery = (uri, options) => { }; const getLinks = apiBase => { - const authLink = createAuthLink(); const storeLink = createStoreLink(); const errorLink = createErrorLink(); const retryLink = createRetryLink(); @@ -54,7 +52,6 @@ const getLinks = apiBase => { const links = new Map() .set('MUTATION_QUEUE', mutationQueueLink) .set('RETRY', retryLink) - .set('AUTH', authLink) .set('GQL_CACHE', gqlCacheLink) .set('STORE', storeLink) .set('ERROR', errorLink)