@tapni/auth 1.0.28 → 1.0.29

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.
@@ -1390,7 +1390,7 @@ function aa(n, e, t, r, o, i) {
1390
1390
  const ro = /* @__PURE__ */ pn(Zi, [["render", aa], ["__scopeId", "data-v-cb61958b"]]), sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1391
1391
  __proto__: null,
1392
1392
  default: ro
1393
- }, Symbol.toStringTag, { value: "Module" })), ca = "1.0.28", ar = {
1393
+ }, Symbol.toStringTag, { value: "Module" })), ca = "1.0.29", ar = {
1394
1394
  getMe() {
1395
1395
  return le().get("/users/me");
1396
1396
  },
@@ -5824,7 +5824,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5824
5824
  app_region: "지역",
5825
5825
  app_region_p: "맞춤형 결제 및 지원을 위해 지역을 선택하세요"
5826
5826
  }
5827
- }, ko = () => Promise.resolve().then(() => sa), ua = () => Promise.resolve().then(() => uc), da = () => Promise.resolve().then(() => rl), pa = () => Promise.resolve().then(() => Qu), ha = () => Promise.resolve().then(() => Pc), fa = () => Promise.resolve().then(() => vl), ma = () => Promise.resolve().then(() => Zu), ga = () => import("./QR-BWFTtLjY.js"), _a = () => Promise.resolve().then(() => vu), va = () => import("./Apps-voVZUqVz.js"), ya = () => import("./Billing-D4eHJurk.js"), wa = () => import("./CustomApp-C1588dCB.js"), ba = () => import("./General-DmED2BeM.js"), ka = [
5827
+ }, ko = () => Promise.resolve().then(() => sa), ua = () => Promise.resolve().then(() => uc), da = () => Promise.resolve().then(() => rl), pa = () => Promise.resolve().then(() => Qu), ha = () => Promise.resolve().then(() => Pc), fa = () => Promise.resolve().then(() => vl), ma = () => Promise.resolve().then(() => Zu), ga = () => import("./QR-DZDzSzfb.js"), _a = () => Promise.resolve().then(() => vu), va = () => import("./Apps-D2eYfE-p.js"), ya = () => import("./Billing-DjBHu4Lq.js"), wa = () => import("./CustomApp-vTYGwC9k.js"), ba = () => import("./General-zRto9Axu.js"), ka = [
5828
5828
  {
5829
5829
  path: "/welcome",
5830
5830
  name: "AuthWelcome",
@@ -15632,8 +15632,8 @@ const Ps = Er("MsAuthPlugin", {
15632
15632
  },
15633
15633
  async mounted() {
15634
15634
  if (!this.isModal) {
15635
- if (this.$route.path === "/app/login/callback/okta") return await this.handleOktaRedirect();
15636
- if (this.$route.path === "/app/login/callback/saml") return await this.handleSamlRedirect();
15635
+ if (this.$route.path === "/login/callback/okta") return await this.handleOktaRedirect();
15636
+ if (this.$route.path === "/login/callback/saml") return await this.handleSamlRedirect();
15637
15637
  this.$route.query.qrLogin && this.changeLoginToQr(), setTimeout(() => {
15638
15638
  this.$storex && this.$storex.token ? this.$router.push(this.home) : te.$emit("ssoEvent", { name: "setLoading", data: !1 });
15639
15639
  }, 2500);
@@ -15682,8 +15682,8 @@ const Ps = Er("MsAuthPlugin", {
15682
15682
  n.includes("@") && (this.$storex.verifyEmail = n);
15683
15683
  },
15684
15684
  "$route.path": async function(n) {
15685
- if (n === "/app/login/callback/okta") return await this.handleOktaRedirect();
15686
- if (n === "/app/login/callback/saml") return await this.handleSamlRedirect();
15685
+ if (n === "/login/callback/okta") return await this.handleOktaRedirect();
15686
+ if (n === "/login/callback/saml") return await this.handleSamlRedirect();
15687
15687
  }
15688
15688
  }
15689
15689
  }, Os = {
@@ -17999,13 +17999,13 @@ const _o = /* @__PURE__ */ pn(yu, [["render", Vu], ["__scopeId", "data-v-707a4b1
17999
17999
  return {};
18000
18000
  },
18001
18001
  async mounted() {
18002
- if (console.log("sss", this.$route.path), this.$route.path === "/app/callback/redirect")
18002
+ if (this.$route.path === "/callback/redirect")
18003
18003
  return location.href = atob(this.$route.query.uri);
18004
- if (this.$route.path === "/app/callback/auth" && this.exchangeAuthCode({
18004
+ if (this.$route.path === "/callback/auth" && this.exchangeAuthCode({
18005
18005
  code: this.$route.query.code,
18006
18006
  code_verifier: this.$route.query.code_verifier
18007
- }), this.$route.path === "/app/callback/okta") return await this.handleOktaRedirect();
18008
- if (this.$route.path === "/app/callback/saml") return await this.handleSamlRedirect();
18007
+ }), this.$route.path === "/callback/okta") return await this.handleOktaRedirect();
18008
+ if (this.$route.path === "/callback/saml") return await this.handleSamlRedirect();
18009
18009
  },
18010
18010
  methods: {
18011
18011
  inAppRedirect() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
@@ -24,18 +24,17 @@ export default {
24
24
  },
25
25
 
26
26
  async mounted() {
27
- console.log('sss', this.$route.path);
28
- if (this.$route.path === '/app/callback/redirect') {
27
+ if (this.$route.path === '/callback/redirect') {
29
28
  return location.href = atob(this.$route.query.uri);
30
29
  }
31
- if (this.$route.path === '/app/callback/auth') {
30
+ if (this.$route.path === '/callback/auth') {
32
31
  this.exchangeAuthCode({
33
32
  code: this.$route.query.code,
34
33
  code_verifier: this.$route.query.code_verifier
35
34
  });
36
35
  }
37
- if (this.$route.path === '/app/callback/okta') return await this.handleOktaRedirect();
38
- if (this.$route.path === '/app/callback/saml') return await this.handleSamlRedirect();
36
+ if (this.$route.path === '/callback/okta') return await this.handleOktaRedirect();
37
+ if (this.$route.path === '/callback/saml') return await this.handleSamlRedirect();
39
38
  },
40
39
  methods: {
41
40
  inAppRedirect() {
@@ -332,8 +332,8 @@ export default {
332
332
  },
333
333
  async mounted() {
334
334
  if (!this.isModal) {
335
- if(this.$route.path === '/app/login/callback/okta') return await this.handleOktaRedirect();
336
- if(this.$route.path === '/app/login/callback/saml') return await this.handleSamlRedirect();
335
+ if(this.$route.path === '/login/callback/okta') return await this.handleOktaRedirect();
336
+ if(this.$route.path === '/login/callback/saml') return await this.handleSamlRedirect();
337
337
  if (this.$route.query.qrLogin) this.changeLoginToQr();
338
338
 
339
339
 
@@ -421,8 +421,8 @@ export default {
421
421
  }
422
422
  },
423
423
  '$route.path': async function(routePath) {
424
- if(routePath === '/app/login/callback/okta') return await this.handleOktaRedirect();
425
- if(routePath === '/app/login/callback/saml') return await this.handleSamlRedirect();
424
+ if(routePath === '/login/callback/okta') return await this.handleOktaRedirect();
425
+ if(routePath === '/login/callback/saml') return await this.handleSamlRedirect();
426
426
  }
427
427
  },
428
428
  };