@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.
- package/dist/common/gql-client.d.ts +1 -1
- package/dist/common/gql-client.d.ts.map +1 -1
- package/dist/common/gql-client.js +1 -4
- package/dist/common/gql-client.js.map +1 -1
- package/dist/common/index.js +5 -1
- package/dist/common/index.js.map +1 -1
- package/dist/dev/index.js +5 -1
- package/dist/dev/index.js.map +1 -1
- package/dist/generate-user-access-token/index.d.ts +1 -1
- package/dist/generate-user-access-token/index.d.ts.map +1 -1
- package/dist/generated/graphql.types.d.ts +215 -215
- package/dist/generated/graphql.types.d.ts.map +1 -1
- package/dist/generated/graphql.types.js +1 -1
- package/dist/generated/graphql.types.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/long-lived-token/index.d.ts +1 -1
- package/dist/long-lived-token/index.d.ts.map +1 -1
- package/dist/service-account-token/index.d.ts +1 -1
- package/dist/service-account-token/index.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/common/gql-client.ts +1 -3
- package/src/generated/graphql.types.ts +1 -1
package/src/common/gql-client.ts
CHANGED
|
@@ -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',
|