@axinom/mosaic-id-link-be 0.12.1 → 0.12.2-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,14 +11,12 @@ export const getGqlClient = (
11
11
  endpoint: string,
12
12
  accessToken?: string,
13
13
  ): ApolloClient<NormalizedCacheObject> => {
14
- const authorization = accessToken ? `Bearer ${accessToken}` : undefined;
15
-
16
14
  return new ApolloClient({
17
15
  link: ApolloLink.from([
18
16
  new HttpLink({
19
17
  uri: endpoint,
20
18
  headers: {
21
- authorization,
19
+ ...(accessToken ? { authorization: `Bearer ${accessToken}` } : {}),
22
20
  },
23
21
  fetch,
24
22
  }),
@@ -1961,7 +1961,7 @@ export enum ErrorCodesEnum {
1961
1961
  TOKEN_VALIDITY_DURATION_EXCEEDED = 'TOKEN_VALIDITY_DURATION_EXCEEDED',
1962
1962
  /** Could not decode User Token in generateLongLivedToken. */
1963
1963
  UNABLE_TO_DECODE_JWT = 'UNABLE_TO_DECODE_JWT',
1964
- /** An unhandled database-related has occurred. Please contact the service support. */
1964
+ /** An unhandled database-related error has occurred. Please contact the service support. */
1965
1965
  UNHANDLED_DATABASE_ERROR = 'UNHANDLED_DATABASE_ERROR',
1966
1966
  /** An unhandled error has occurred. Please contact the service support. */
1967
1967
  UNHANDLED_ERROR = 'UNHANDLED_ERROR',