# @theorchard/suite-apollo

## 3.2.0

### Minor Changes

-   Add session expiration logging
-   Cancel graphql requests when session is expired

## 3.1.4

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.4.3

## 3.1.3

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-config@1.10.0

## 3.1.2

### Patch Changes

-   Add lodash-es to lodash jest module mapping for ESM compatibility

## 3.1.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-identity@3.5.0

## 3.1.0

### Minor Changes

-   Update session expired logic

## 3.0.25

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-identity@3.4.0

## 3.0.24

### Patch Changes

-   Pinning graphql 16.8.1, upgrading graphql-server to Apollo v5, express v5

## 3.0.23

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-identity@3.3.0

## 3.0.22

### Patch Changes

-   Updated dependencies
    -   @theorchard/constants@1.6.0

## 3.0.21

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-config@1.9.0

## 3.0.20

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.4.1

## 3.0.19

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-config@1.8.0

## 3.0.18

### Patch Changes

-   Updated dependencies
    -   @theorchard/constants@1.5.0

## 3.0.17

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-config@1.7.0

## 3.0.16

### Patch Changes

-   Updated to support latest @apollo/client.

## 3.0.15

### Patch Changes

-   Updated peer-dependencies
    -   graphql >= 15

## 3.0.14

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.4.0

## 3.0.13

### Patch Changes

-   @theorchard/suite-config@1.6.5

## 3.0.12

### Patch Changes

-   @theorchard/suite-config@1.6.4

## 3.0.11

### Patch Changes

-   @theorchard/suite-config@1.6.3

## 3.0.10

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.3.4

## 3.0.9

### Patch Changes

-   Updated dependencies
    -   @theorchard/constants@1.4.1
    -   @theorchard/suite-config@1.6.2

## 3.0.8

### Patch Changes

-   Added exports field to package.json
-   Updated dependencies
    -   @theorchard/suite-config@1.6.1
    -   @theorchard/suite-identity@3.2.1
    -   @theorchard/suite-utils@1.3.3

## 3.0.7

### Patch Changes

-   Updated dependencies
    -   @theorchard/constants@1.4.0

## 3.0.6

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-identity@3.2.0

## 3.0.5

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.3.2

## 3.0.4

### Patch Changes

-   Updated dependencies
    -   @theorchard/constants@1.3.1

## 3.0.3

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-config@1.6.0

## 3.0.2

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.3.1

## 3.0.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-identity@3.1.0

## 3.0.0

### Major Changes

-   Updated to use the new identity model in suite-identity.
-   Uses configuration types from suite-config.

### Breaking Changes

-   No longer exports the `ApolloAppConfig` type. It is now exported from suite-config.

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-identity@3.0.0
    -   @theorchard/suite-config@1.5.0

## 2.0.15

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.6.0

## 2.0.14

### Patch Changes

-   @theorchard/suite-auth@3.5.2

## 2.0.13

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.5.1

## 2.0.12

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.5.0

## 2.0.11

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.4.1

## 2.0.10

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.4.0

## 2.0.9

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.3.1

## 2.0.8

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.3.0

## 2.0.7

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.2.0

## 2.0.6

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.3.0
    -   @theorchard/suite-auth@3.1.2

## 2.0.5

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.1.1

## 2.0.4

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.1.0

## 2.0.3

### Patch Changes

-   @theorchard/suite-auth@3.0.2

## 2.0.2

### Patch Changes

-   Fix bug after upgrading to the newest Auth0 JS SDK causing expired refresh tokens to not trigger automatic logout.

## 2.0.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-auth@3.0.1

## 2.0.0

### Major Changes

-   The headers sent with graphql requests are now provided by the `AuthClient.getHeaders` function.

### Breaking Changes

-   The exported "createAuthHeaders" function is moved to suite-auth.
-   The "graphqlNoCache" option is removed, since it was unused and not even working as expected.

## 1.4.10

### Patch Changes

-   Updated dependencies
    -   @theorchard/constants@1.3.0

## 1.4.9

### Patch Changes

-   Updated dependencies
    -   @theorchard/constants@1.2.1

## 1.4.8

### Patch Changes

-   Updated dependencies
    -   @theorchard/constants@1.1.1

## 1.4.7

### Patch Changes

-   Updated dependencies
    -   @theorchard/constants@1.1.0

## 1.4.6

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.2.0

## 1.4.5

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.1.2

## 1.4.4

### Patch Changes

-   Use shared constants from the new "@theorchard/constants" library.
-   Updated dependencies
    -   @theorchard/constants@1.0.0

## 1.4.3

### Patch Changes

-   Fix passing custom headers to graphql requests

## 1.4.2

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.1.1

## 1.4.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/suite-utils@1.1.0

## 1.4.0

### Minor Changes

-   Add option to include custom headers to graphql requests.

## 1.3.0

### Minor Changes

-   Added support for batching requests using a "batchKey" in the apollo context.

## 1.2.2

### Patch Changes

-   Handle 403 Grass errors

## 1.2.1

### Patch Changes

-   Add `orchard-identity-uuid` header.

## 1.2.0

### Minor Changes

-   Export `createAuthHeaders` util to create headers sent to the graphql gateway.

## 1.1.25

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-utils@1.0.2

## 1.1.24

### Patch Changes

-   Export ApolloLinks

## 1.1.23

### Patch Changes

-   Add common apollo utils

## 1.1.22

### Patch Changes

-   Add optional orchard-roles header to AuthLink

## 1.1.21

### Patch Changes

-   Add missing dependencies

## 1.1.20

### Patch Changes

-   Add authUser.profileUUID as optional attribute

## 1.1.19

### Patch Changes

-   Updated authUser.profileId type

## 1.1.18

### Patch Changes

-   Added tests

## 1.1.17

### Patch Changes

-   remove HEADER_BRAND_NAME from apollo client

## 1.1.16

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@1.0.2

## 1.1.15

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@1.0.1

## 1.1.14

### Patch Changes

-   Removed unused provider
-   Moved mocks to suite-frontend
-   Updated dependencies []
    -   @theorchard/suite-auth@1.0.1

## 1.1.13

### Patch Changes

-   Use direct dependency on @apollo/client
-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.16

## 1.1.12

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.15

## 1.1.11

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.13

## 1.1.10

### Patch Changes

-   Remove dependency on suite-components
-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.12

## 1.1.9

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-components@1.0.9
    -   @theorchard/suite-auth@0.9.11

## 1.1.8

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.10

## 1.1.7

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.9

## 1.1.6

### Patch Changes

-   @theorchard/suite-components@1.0.8
-   @theorchard/suite-auth@0.9.8

## 1.1.5

### Patch Changes

-   bugfixing providers to properly work all together
-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.7

## 1.1.4

### Patch Changes

-   Expose client factory hook and client options creation.

## 1.1.3

### Patch Changes

-   Exports ApolloProvider

## 1.1.2

### Patch Changes

-   Updated dependencies []
    -   @theorchard/suite-auth@0.9.6

## 1.1.1

### Patch Changes

-   fix brand header + lowercase them all

## 1.1.0

### Minor Changes

-   new ApolloProvider + utils
