# @theorchard/jwt-service-handler

## 4.6.7

### Patch Changes

-   SEC: lodash from 4.17.23 to 4.18.1

## 4.6.6

### Patch Changes

-   Revert lodash-es back to lodash for CJS build compatibility

## 4.6.5

### Patch Changes

-   Update `@aws-sdk/client-secrets-manager`, `jwks-rsa` dependencies.
-   Minimum node version >= 22

## 4.6.4

### Patch Changes

-   Migrate lodash dependency to lodash-es

## 4.6.3

### Patch Changes

-   Bump lodash to 4.17.23 to fix vulnerabilities

## 4.6.2

### Patch Changes

-   Update dependencies

## 4.6.1

### Patch Changes

-   Bump jsonwebtoken to bump jws vulnerability

## 4.6.0

### Minor Changes

-   Bump @sentry/node to match datasource-ows and graphql-server

## 4.5.1

### Patch Changes

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

## 4.5.0

### Minor Changes

-   Do not return service token in UAT

## 4.4.0

### Minor Changes

-   Return service token in UAT.

## 4.3.2

### Patch Changes

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

## 4.3.1

### Patch Changes

-   @theorchard/utils-environment@1.0.18

## 4.3.0

### Minor Changes

-   Add optional override for AUTHO_DOMAIN

## 4.2.2

### Patch Changes

-   Fix Sentry import in `CacheJwtRefreshJob.ts` module

## 4.2.1

### Patch Changes

-   @theorchard/utils-environment@1.0.17

## 4.2.0

### Minor Changes

-   Export `ServiceTokenCache` and `ServiceTokenCacheParams` type, in addition to the existing `getServiceToken` export.

## 4.1.0

### Minor Changes

-   The `ServiceTokenCache` constructor now accepts an optional `params` object, allowing for setting:
    `serviceName` (optional): Name of the service.
    `secretKey` (optional): JWT secret key for the service.
    `expirySecretKey` (optional): JWT expiry secret key for the service.

## 4.0.6

### Patch Changes

-   Upgrade @aws-sdk/client-secrets-manager to resolve CVE-GHSA-mpg4-rc92-vx8

## 4.0.5

### Patch Changes

-   @theorchard/utils-environment@1.0.16

## 4.0.4

### Patch Changes

-   @theorchard/utils-environment@1.0.15

## 4.0.3

### Patch Changes

-   @theorchard/utils-environment@1.0.14

## 4.0.2

### Patch Changes

-   Updated dependencies
    -   @theorchard/utils-environment@1.0.13

## 4.0.1

### Patch Changes

-   @theorchard/utils-environment@1.0.12

## 4.0.0

### Major Changes

-   bumped jsonwebtoken to >9

## 3.0.0

### Major Changes

-   [WARNING] This is a major update as we are increasing the version of jwks-rsa to 2.1.5 which drops the support to axios.

## 2.1.1

### Patch Changes

-   @theorchard/utils-environment@1.0.11

## 2.1.0

### Minor Changes

-   Update the AWS SDK used for getting and updating the secret containing JWT enabled service list

## 2.0.0

### Major Changes

-   Removes dependencies on apollo libraries to make it compatible with any server version.

### Breaking Changes

-   On invalid token, it now throws throws a generic "Error" object instead of the "AuthenticationError" from "apollo-server-errors".

## 1.1.2

### Patch Changes

-   @theorchard/utils-environment@1.0.10

## 1.1.1

### Patch Changes

-   @theorchard/utils-environment@1.0.9

## 1.1.0

### Minor Changes

-   Add Service Token support

## 1.0.14

### Patch Changes

-   @theorchard/utils-environment@1.0.8

## 1.0.13

### Patch Changes

-   @theorchard/utils-environment@1.0.7

## 1.0.12

### Patch Changes

-   @theorchard/utils-environment@1.0.6

## 1.0.11

### Patch Changes

-   @theorchard/utils-environment@1.0.5

## 1.0.10

### Patch Changes

-   @theorchard/utils-environment@1.0.4

## 1.0.9

### Patch Changes

-   Updated dependencies
    -   @theorchard/utils-environment@1.0.3

## 1.0.8

### Patch Changes

-   @theorchard/utils-environment@1.0.2

## 1.0.7

### Patch Changes

-   @theorchard/utils-environment@1.0.1

## 1.0.6

### Patch Changes

-   Uses @theorchard/utils-environment to correctly determine the environment.

## 1.0.5

### Patch Changes

-   Added multiple issuer jwt validation

## 1.0.4

### Patch Changes

-   Removed Hmac authorization log

## 1.0.3

### Patch Changes

-   Fix JwtHandler creation

## 1.0.2

### Patch Changes

-   Fix bug were the jwt enabled services were stored as a string in the local cache.

## 1.0.1

### Patch Changes

-   Make JwtHandler a singleton to access the cache globally.
