@ai-sdk/mcp 1.0.45 → 1.0.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/CHANGELOG.md +6 -0
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/tool/oauth.ts +12 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -842,7 +842,12 @@ async function exchangeAuthorization(authorizationServerUrl, {
|
|
|
842
842
|
redirect_uri: String(redirectUri)
|
|
843
843
|
});
|
|
844
844
|
if (addClientAuthentication) {
|
|
845
|
-
addClientAuthentication(
|
|
845
|
+
await addClientAuthentication(
|
|
846
|
+
headers,
|
|
847
|
+
params,
|
|
848
|
+
authorizationServerUrl,
|
|
849
|
+
metadata
|
|
850
|
+
);
|
|
846
851
|
} else {
|
|
847
852
|
const supportedMethods = (_a3 = metadata == null ? void 0 : metadata.token_endpoint_auth_methods_supported) != null ? _a3 : [];
|
|
848
853
|
const authMethod = selectClientAuthMethod(
|
|
@@ -894,7 +899,12 @@ async function refreshAuthorization(authorizationServerUrl, {
|
|
|
894
899
|
refresh_token: refreshToken
|
|
895
900
|
});
|
|
896
901
|
if (addClientAuthentication) {
|
|
897
|
-
addClientAuthentication(
|
|
902
|
+
await addClientAuthentication(
|
|
903
|
+
headers,
|
|
904
|
+
params,
|
|
905
|
+
authorizationServerUrl,
|
|
906
|
+
metadata
|
|
907
|
+
);
|
|
898
908
|
} else {
|
|
899
909
|
const supportedMethods = (_a3 = metadata == null ? void 0 : metadata.token_endpoint_auth_methods_supported) != null ? _a3 : [];
|
|
900
910
|
const authMethod = selectClientAuthMethod(
|