@0xchain/token 1.1.0-beta.60 → 1.1.0-beta.61

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 +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -111,7 +111,7 @@ const isTokenExpired = async () => {
111
111
  let t;
112
112
  let refreshToken;
113
113
  let accessToken;
114
- if (process.env.IS_SERVER) {
114
+ if (typeof window === "undefined") {
115
115
  try {
116
116
  const { cookies } = await import("next/headers");
117
117
  const cookieStore = await cookies();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xchain/token",
3
- "version": "1.1.0-beta.60",
3
+ "version": "1.1.0-beta.61",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",