@aloma.io/integration-sdk 3.7.44 → 3.7.46
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/build/internal/index.mjs
CHANGED
@@ -125,8 +125,8 @@ ${text}
|
|
125
125
|
that._oauth.authorizationURL;
|
126
126
|
if (!authorizationURL)
|
127
127
|
throw new Error("authorizationURL not configured");
|
128
|
-
const clientId =
|
129
|
-
|
128
|
+
const clientId = decrypted.clientId ||
|
129
|
+
process.env.OAUTH_CLIENT_ID ||
|
130
130
|
this._oauth.clientId;
|
131
131
|
if (!clientId)
|
132
132
|
throw new Error("clientId not configured");
|
@@ -156,13 +156,13 @@ ${text}
|
|
156
156
|
const doFinish = async () => {
|
157
157
|
if (!arg.code || !arg.redirectURI)
|
158
158
|
throw new Error("need code and redirectUri");
|
159
|
-
const clientId =
|
160
|
-
|
159
|
+
const clientId = decrypted.clientId ||
|
160
|
+
process.env.OAUTH_CLIENT_ID ||
|
161
161
|
that._oauth.clientId;
|
162
162
|
if (!clientId)
|
163
163
|
throw new Error("clientId not configured");
|
164
|
-
const clientSecret =
|
165
|
-
|
164
|
+
const clientSecret = decrypted.clientSecret ||
|
165
|
+
process.env.OAUTH_CLIENT_SECRET ||
|
166
166
|
that._oauth.clientSecret;
|
167
167
|
if (!clientSecret)
|
168
168
|
throw new Error("clientSecret not configured");
|
@@ -247,13 +247,13 @@ ${text}
|
|
247
247
|
const tokenURL = process.env.OAUTH_TOKEN_URL ||
|
248
248
|
decrypted.tokenURL ||
|
249
249
|
that._oauth.tokenURL;
|
250
|
-
const clientId =
|
251
|
-
|
250
|
+
const clientId = decrypted.clientId ||
|
251
|
+
process.env.OAUTH_CLIENT_ID ||
|
252
252
|
that._oauth.clientId;
|
253
253
|
if (!clientId)
|
254
254
|
throw new Error("clientId not configured");
|
255
|
-
const clientSecret =
|
256
|
-
|
255
|
+
const clientSecret = decrypted.clientSecret ||
|
256
|
+
process.env.OAUTH_CLIENT_SECRET ||
|
257
257
|
that._oauth.clientSecret;
|
258
258
|
if (!clientSecret)
|
259
259
|
throw new Error("clientSecret not configured");
|
package/package.json
CHANGED
package/src/internal/index.mts
CHANGED
@@ -148,8 +148,8 @@ ${text}
|
|
148
148
|
throw new Error("authorizationURL not configured");
|
149
149
|
|
150
150
|
const clientId =
|
151
|
-
process.env.OAUTH_CLIENT_ID ||
|
152
151
|
decrypted.clientId ||
|
152
|
+
process.env.OAUTH_CLIENT_ID ||
|
153
153
|
this._oauth.clientId;
|
154
154
|
|
155
155
|
if (!clientId) throw new Error("clientId not configured");
|
@@ -189,15 +189,15 @@ ${text}
|
|
189
189
|
throw new Error("need code and redirectUri");
|
190
190
|
|
191
191
|
const clientId =
|
192
|
-
process.env.OAUTH_CLIENT_ID ||
|
193
192
|
decrypted.clientId ||
|
193
|
+
process.env.OAUTH_CLIENT_ID ||
|
194
194
|
that._oauth.clientId;
|
195
195
|
|
196
196
|
if (!clientId) throw new Error("clientId not configured");
|
197
197
|
|
198
198
|
const clientSecret =
|
199
|
-
process.env.OAUTH_CLIENT_SECRET ||
|
200
199
|
decrypted.clientSecret ||
|
200
|
+
process.env.OAUTH_CLIENT_SECRET ||
|
201
201
|
that._oauth.clientSecret;
|
202
202
|
if (!clientSecret) throw new Error("clientSecret not configured");
|
203
203
|
|
@@ -301,14 +301,14 @@ ${text}
|
|
301
301
|
that._oauth.tokenURL;
|
302
302
|
|
303
303
|
const clientId =
|
304
|
-
process.env.OAUTH_CLIENT_ID ||
|
305
304
|
decrypted.clientId ||
|
305
|
+
process.env.OAUTH_CLIENT_ID ||
|
306
306
|
that._oauth.clientId;
|
307
307
|
if (!clientId) throw new Error("clientId not configured");
|
308
308
|
|
309
309
|
const clientSecret =
|
310
|
-
process.env.OAUTH_CLIENT_SECRET ||
|
311
310
|
decrypted.clientSecret ||
|
311
|
+
process.env.OAUTH_CLIENT_SECRET ||
|
312
312
|
that._oauth.clientSecret;
|
313
313
|
if (!clientSecret) throw new Error("clientSecret not configured");
|
314
314
|
|