@adobe/spacecat-shared-google-client 1.5.0 → 1.5.1
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/index.js +3 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-google-client-v1.5.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-google-client-v1.5.0...@adobe/spacecat-shared-google-client-v1.5.1) (2026-02-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* llmo auth client ([#1312](https://github.com/adobe/spacecat-shared/issues/1312)) ([8662248](https://github.com/adobe/spacecat-shared/commit/8662248d6a1987b95d8f3c09fff8621d9bf16215))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-google-client-v1.5.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-google-client-v1.4.63...@adobe/spacecat-shared-google-client-v1.5.0) (2026-02-03)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -73,11 +73,6 @@ export default class GoogleClient {
|
|
|
73
73
|
const response = await client.send(command);
|
|
74
74
|
const secrets = JSON.parse(response.SecretString);
|
|
75
75
|
|
|
76
|
-
// Check if request is from LLMO UI to use different OAuth client
|
|
77
|
-
const clientType = context.pathInfo?.headers?.['x-client-type'];
|
|
78
|
-
const llmoClientType = context.env.LLMO_CLIENT_TYPE || 'llm-optimizer-ui';
|
|
79
|
-
const isLlmoClient = clientType === llmoClientType;
|
|
80
|
-
|
|
81
76
|
const config = {
|
|
82
77
|
accessToken: secrets.access_token,
|
|
83
78
|
refreshToken: secrets.refresh_token,
|
|
@@ -85,15 +80,9 @@ export default class GoogleClient {
|
|
|
85
80
|
expiryDate: secrets.expiry_date,
|
|
86
81
|
siteUrl: secrets.site_url,
|
|
87
82
|
baseUrl: baseURL,
|
|
88
|
-
clientId:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
clientSecret: isLlmoClient
|
|
92
|
-
? context.env.LLMO_GOOGLE_CLIENT_SECRET
|
|
93
|
-
: context.env.GOOGLE_CLIENT_SECRET,
|
|
94
|
-
redirectUri: isLlmoClient
|
|
95
|
-
? context.env.LLMO_GOOGLE_REDIRECT_URI
|
|
96
|
-
: context.env.GOOGLE_REDIRECT_URI,
|
|
83
|
+
clientId: context.env.GOOGLE_CLIENT_ID,
|
|
84
|
+
clientSecret: context.env.GOOGLE_CLIENT_SECRET,
|
|
85
|
+
redirectUri: context.env.GOOGLE_REDIRECT_URI,
|
|
97
86
|
};
|
|
98
87
|
|
|
99
88
|
const googleClient = new GoogleClient(config, context.log);
|