@tapni/auth 0.0.73 → 0.0.74

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.
@@ -8,7 +8,7 @@ import { Capacitor as Qt, registerPlugin as In, WebPlugin as Wo } from "@capacit
8
8
  import { Browser as hn } from "@capacitor/browser";
9
9
  import $o from "qr-code-styling";
10
10
  import { sanitizeUrl as Jo } from "@braintree/sanitize-url";
11
- const Xo = "0.0.73";
11
+ const Xo = "0.0.74";
12
12
  let Un;
13
13
  const Ft = {
14
14
  setApiRootFromOptions(n) {
@@ -4630,10 +4630,10 @@ const ze = {
4630
4630
  },
4631
4631
  setRefreshToken(n) {
4632
4632
  let e = this.getRefreshTokens();
4633
- n ? (e.includes(n) || e.unshift(n), this.refreshToken = n) : (e = e.filter((t) => t !== this.refreshToken), e && e.length >= 1 && (this.refreshToken = e[0])), this.$storage.refreshTokens = e.join(","), z.$emit("ssoEvent", { name: "setRefreshToken", data: n });
4633
+ n ? (e.includes(n) || e.unshift(n), this.refreshToken = n) : (e = e.filter((t) => t !== this.refreshToken), e && e.length >= 1 && (this.refreshToken = e[0])), this.$storage.refreshTokens = e.join(","), z.$emit("setStorage", this.$storage), z.$emit("ssoEvent", { name: "setRefreshToken", data: n });
4634
4634
  },
4635
4635
  setToken(n) {
4636
- this.$storage.token = n, this.token = n, z.$emit("ssoEvent", { name: "setToken", data: n });
4636
+ this.$storage.token = n, this.token = n, z.$emit("setStorage", this.$storage);
4637
4637
  },
4638
4638
  setUserID(n) {
4639
4639
  this.$storage.UserId = n;