@pear-protocol/hyperliquid-sdk 0.0.73-beta.1 → 0.0.73-beta.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7229,12 +7229,16 @@ function useAuth() {
7229
7229
  const refreshTokenKey = `${address}_refreshToken`;
7230
7230
  const storedAccessToken = localStorage.getItem(accessTokenKey);
7231
7231
  const storedRefreshToken = localStorage.getItem(refreshTokenKey);
7232
- console.log({ storedAccessToken, storedRefreshToken });
7233
7232
  if (storedAccessToken && storedRefreshToken) {
7234
7233
  setAccessToken(storedAccessToken);
7235
7234
  setRefreshToken(storedRefreshToken);
7236
7235
  setIsAuthenticated(true);
7237
7236
  }
7237
+ else {
7238
+ setAccessToken(null);
7239
+ setRefreshToken(null);
7240
+ setIsAuthenticated(false);
7241
+ }
7238
7242
  }
7239
7243
  setIsReady(true);
7240
7244
  }, [address]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/hyperliquid-sdk",
3
- "version": "0.0.73-beta.1",
3
+ "version": "0.0.73-beta.2",
4
4
  "description": "React SDK for Pear Protocol Hyperliquid API integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",