@redzone/taunt-logins 0.0.11 → 0.0.12

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.
@@ -519,7 +519,7 @@ class TauntApi {
519
519
  try {
520
520
  signature = await provider.personalSign(message, walletAddress);
521
521
  } catch (err) {
522
- throw new Error("User denied message signature");
522
+ throw new Error(`User denied message signature, ${err}`);
523
523
  }
524
524
  if (!signature) {
525
525
  throw new Error("No signature returned");
@@ -647,12 +647,12 @@ class TauntApi {
647
647
  originalRequest._retry = true;
648
648
  console.log("401 - refreshing token");
649
649
  try {
650
- const data = await this.refresh();
650
+ await this.refresh();
651
651
  return this._axios(originalRequest);
652
652
  } catch (error) {
653
653
  console.log("Unable to refresh access token, please log in");
654
654
  this.refreshToken = null;
655
- window.location.href = "/";
655
+ // window.location.href = "/"
656
656
  return Promise.reject(error);
657
657
  }
658
658
  }
package/dist/es/index.js CHANGED
@@ -513,7 +513,7 @@ class TauntApi {
513
513
  try {
514
514
  signature = await provider.personalSign(message, walletAddress);
515
515
  } catch (err) {
516
- throw new Error("User denied message signature");
516
+ throw new Error(`User denied message signature, ${err}`);
517
517
  }
518
518
  if (!signature) {
519
519
  throw new Error("No signature returned");
@@ -641,12 +641,12 @@ class TauntApi {
641
641
  originalRequest._retry = true;
642
642
  console.log("401 - refreshing token");
643
643
  try {
644
- const data = await this.refresh();
644
+ await this.refresh();
645
645
  return this._axios(originalRequest);
646
646
  } catch (error) {
647
647
  console.log("Unable to refresh access token, please log in");
648
648
  this.refreshToken = null;
649
- window.location.href = "/";
649
+ // window.location.href = "/"
650
650
  return Promise.reject(error);
651
651
  }
652
652
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redzone/taunt-logins",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -34,16 +34,16 @@
34
34
  "magic-sdk": "^30.0.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@repo/typescript-config": "*",
38
37
  "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
38
+ "@repo/eslint-config": "*",
39
+ "@repo/typescript-config": "*",
39
40
  "@types/chrome": "^0.1.16",
40
41
  "@types/node": "^24.6.1",
41
42
  "@vitejs/plugin-react": "^5.0.4",
42
- "@repo/eslint-config": "*",
43
- "eslint": "latest",
43
+ "bunchee": "^6.4.0",
44
+ "eslint": "^9.38.0",
44
45
  "prettier": "latest",
45
46
  "prettier-config-custom": "*",
46
- "bunchee": "^6.4.0",
47
47
  "tsup": "^8.5.0",
48
48
  "typescript": "^5.9.3"
49
49
  }