@mcp-use/client 2.3.4-canary.1 → 2.3.4-canary.2
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/.tsbuildinfo +1 -1
- package/dist/index-browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +3 -2
- package/dist/react/index.js.map +1 -1
- package/dist/react/token-expiry.d.ts.map +1 -1
- package/dist/react/types.d.ts +1 -1
- package/dist/react/types.d.ts.map +1 -1
- package/dist/react/useMcp-operations.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index-browser.js
CHANGED
package/dist/index.js
CHANGED
package/dist/react/index.js
CHANGED
|
@@ -1880,7 +1880,7 @@ var HttpConnector = class extends BaseConnector {
|
|
|
1880
1880
|
};
|
|
1881
1881
|
|
|
1882
1882
|
// src/utils/version.ts
|
|
1883
|
-
var VERSION = "2.3.4-canary.
|
|
1883
|
+
var VERSION = "2.3.4-canary.2";
|
|
1884
1884
|
function getPackageVersion() {
|
|
1885
1885
|
return VERSION;
|
|
1886
1886
|
}
|
|
@@ -5150,7 +5150,8 @@ function useMcpOperations(params) {
|
|
|
5150
5150
|
// src/react/token-expiry.ts
|
|
5151
5151
|
function getOAuthTokenExpiry(tokens) {
|
|
5152
5152
|
try {
|
|
5153
|
-
const
|
|
5153
|
+
const segment = (tokens.access_token?.split(".")[1] ?? "").replaceAll("-", "+").replaceAll("_", "/");
|
|
5154
|
+
const payload = JSON.parse(atob(segment));
|
|
5154
5155
|
if (typeof payload.exp === "number") return payload.exp * 1e3;
|
|
5155
5156
|
} catch {
|
|
5156
5157
|
}
|