@tapni/auth 1.0.26 → 1.0.27

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.26", ar = {
1393
+ }, Symbol.toStringTag, { value: "Module" })), ca = "1.0.27", 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-CzWOx04Q.js"), _a = () => Promise.resolve().then(() => vu), va = () => import("./Apps-BoicWNuM.js"), ya = () => import("./Billing-DcwH__SB.js"), wa = () => import("./CustomApp-CqdT8ror.js"), ba = () => import("./General-CQN8cTr2.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-BU8ZXvwS.js"), _a = () => Promise.resolve().then(() => vu), va = () => import("./Apps-DjKy-a5Q.js"), ya = () => import("./Billing-DSqrWJMC.js"), wa = () => import("./CustomApp-CBmIn-Tt.js"), ba = () => import("./General-iau1n0fq.js"), ka = [
5828
5828
  {
5829
5829
  path: "/welcome",
5830
5830
  name: "AuthWelcome",
@@ -5924,7 +5924,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5924
5924
  kr: oi.state
5925
5925
  },
5926
5926
  display: "npm",
5927
- redirect_uri: "https://t.link/callback/auth",
5927
+ redirect_uri: "https://t.link/app/callback/auth",
5928
5928
  response_type: "token",
5929
5929
  state: "",
5930
5930
  allowedOriginsAuth: [
@@ -15501,7 +15501,7 @@ const Ps = Er("MsAuthPlugin", {
15501
15501
  var s;
15502
15502
  const i = localStorage.getItem("auth_code"), a = localStorage.getItem("pkce_code_verifier");
15503
15503
  i && (clearInterval(this.checkInterval), localStorage.removeItem("auth_code"), localStorage.removeItem("pkce_code_verifier"), (s = window.parent) == null || s.postMessage({ code: i, state: this.$route.query.state, code_verifier: a }, "*"), a && (this.display === "npm" || this.display === "redirect") && this.exchangeAuthCode({ code: i, code_verifier: a }));
15504
- }, 500), this.popupWindow = window.open(window.location.origin + "/callback/redirect?uri=" + btoa(n), "popup", "width=600,height=600"));
15504
+ }, 500), this.popupWindow = window.open(window.location.origin + "/app/callback/redirect?uri=" + btoa(n), "popup", "width=600,height=600"));
15505
15505
  },
15506
15506
  async handleSamlRedirect() {
15507
15507
  var e;
@@ -15632,8 +15632,8 @@ const Ps = Er("MsAuthPlugin", {
15632
15632
  },
15633
15633
  async mounted() {
15634
15634
  if (!this.isModal) {
15635
- if (this.$route.path === "/login/callback/okta") return await this.handleOktaRedirect();
15636
- if (this.$route.path === "/login/callback/saml") return await this.handleSamlRedirect();
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();
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 === "/login/callback/okta") return await this.handleOktaRedirect();
15686
- if (n === "/login/callback/saml") return await this.handleSamlRedirect();
15685
+ if (n === "/app/login/callback/okta") return await this.handleOktaRedirect();
15686
+ if (n === "/app/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 (this.$route.path === "/callback/redirect")
18002
+ if (this.$route.path === "/app/callback/redirect")
18003
18003
  return location.href = atob(this.$route.query.uri);
18004
- if (this.$route.path === "/callback/auth" && this.exchangeAuthCode({
18004
+ if (this.$route.path === "/app/callback/auth" && this.exchangeAuthCode({
18005
18005
  code: this.$route.query.code,
18006
18006
  code_verifier: this.$route.query.code_verifier
18007
- }), this.$route.path === "/callback/okta") return await this.handleOktaRedirect();
18008
- if (this.$route.path === "/callback/saml") return await this.handleSamlRedirect();
18007
+ }), this.$route.path === "/app/callback/okta") return await this.handleOktaRedirect();
18008
+ if (this.$route.path === "/app/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.26",
3
+ "version": "1.0.27",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
@@ -88,7 +88,7 @@ export default {
88
88
  }
89
89
  }, 500);
90
90
 
91
- this.popupWindow = window.open(window.location.origin + '/callback/redirect?uri=' + btoa(loginUrl), 'popup', 'width=600,height=600');
91
+ this.popupWindow = window.open(window.location.origin + '/app/callback/redirect?uri=' + btoa(loginUrl), 'popup', 'width=600,height=600');
92
92
  }
93
93
  },
94
94
  async handleSamlRedirect() {
package/src/store/auth.js CHANGED
@@ -41,7 +41,7 @@ export default {
41
41
  kr: kr.state,
42
42
  },
43
43
  display: import.meta.env.VITE_APP_MODE,
44
- redirect_uri: import.meta.env.VITE_APP_APP_ROOT + "/callback/auth",
44
+ redirect_uri: import.meta.env.VITE_APP_APP_ROOT + "/app/callback/auth",
45
45
  response_type: "token",
46
46
  state: "",
47
47
  allowedOriginsAuth: [
@@ -24,17 +24,17 @@ export default {
24
24
  },
25
25
 
26
26
  async mounted() {
27
- if (this.$route.path === '/callback/redirect') {
27
+ if (this.$route.path === '/app/callback/redirect') {
28
28
  return location.href = atob(this.$route.query.uri);
29
29
  }
30
- if (this.$route.path === '/callback/auth') {
30
+ if (this.$route.path === '/app/callback/auth') {
31
31
  this.exchangeAuthCode({
32
32
  code: this.$route.query.code,
33
33
  code_verifier: this.$route.query.code_verifier
34
34
  });
35
35
  }
36
- if (this.$route.path === '/callback/okta') return await this.handleOktaRedirect();
37
- if (this.$route.path === '/callback/saml') return await this.handleSamlRedirect();
36
+ if (this.$route.path === '/app/callback/okta') return await this.handleOktaRedirect();
37
+ if (this.$route.path === '/app/callback/saml') return await this.handleSamlRedirect();
38
38
  },
39
39
  methods: {
40
40
  inAppRedirect() {
@@ -332,8 +332,8 @@ export default {
332
332
  },
333
333
  async mounted() {
334
334
  if (!this.isModal) {
335
- if(this.$route.path === '/login/callback/okta') return await this.handleOktaRedirect();
336
- if(this.$route.path === '/login/callback/saml') return await this.handleSamlRedirect();
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();
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 === '/login/callback/okta') return await this.handleOktaRedirect();
425
- if(routePath === '/login/callback/saml') return await this.handleSamlRedirect();
424
+ if(routePath === '/app/login/callback/okta') return await this.handleOktaRedirect();
425
+ if(routePath === '/app/login/callback/saml') return await this.handleSamlRedirect();
426
426
  }
427
427
  },
428
428
  };