@tapni/auth 1.0.9 → 1.0.11

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.
@@ -1397,7 +1397,7 @@ function pa(n, e, t, r, o, i) {
1397
1397
  const ao = /* @__PURE__ */ _t(oa, [["render", pa], ["__scopeId", "data-v-7aad6400"]]), ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1398
1398
  __proto__: null,
1399
1399
  default: ao
1400
- }, Symbol.toStringTag, { value: "Module" })), fa = "1.0.9", cr = {
1400
+ }, Symbol.toStringTag, { value: "Module" })), fa = "1.0.11", cr = {
1401
1401
  getMe() {
1402
1402
  return le().get("/users/me");
1403
1403
  },
@@ -5563,7 +5563,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5563
5563
  choose_other_login_methods: "다른 로그인 방법 선택하기",
5564
5564
  no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
5565
5565
  }
5566
- }, To = () => Promise.resolve().then(() => ha), ma = () => Promise.resolve().then(() => mc), _a = () => Promise.resolve().then(() => cl), va = () => Promise.resolve().then(() => Xu), ya = () => Promise.resolve().then(() => zc), wa = () => Promise.resolve().then(() => Cl), ba = () => Promise.resolve().then(() => od), ka = () => import("./QR-DmSyXgb5.js"), Ca = () => Promise.resolve().then(() => Cu), Ea = () => import("./Apps-spt3-xmr.js"), Ta = () => import("./Billing-EQtSRyls.js"), Sa = () => import("./CustomApp-DytcodWc.js"), Ia = () => import("./General-BBoC_TV2.js"), Aa = [
5566
+ }, To = () => Promise.resolve().then(() => ha), ma = () => Promise.resolve().then(() => mc), _a = () => Promise.resolve().then(() => cl), va = () => Promise.resolve().then(() => Xu), ya = () => Promise.resolve().then(() => zc), wa = () => Promise.resolve().then(() => Cl), ba = () => Promise.resolve().then(() => od), ka = () => import("./QR-BxHBi2nV.js"), Ca = () => Promise.resolve().then(() => Cu), Ea = () => import("./Apps-D903yvip.js"), Ta = () => import("./Billing-CQp6b4tB.js"), Sa = () => import("./CustomApp-h6WA5um0.js"), Ia = () => import("./General-DA3IgC3X.js"), Aa = [
5567
5567
  {
5568
5568
  path: "/welcome",
5569
5569
  name: "AuthWelcome",
@@ -14987,7 +14987,7 @@ const xs = Ir("MsAuthPlugin", {
14987
14987
  knownAuthorities: [],
14988
14988
  keyHash: "4+5wCp8QcLptlO0aeP5RDTTOWyg=",
14989
14989
  // Android,
14990
- redirectUri: "https://" + window.location.host + "/login"
14990
+ redirectUri: `${window.location.origin}/login`
14991
14991
  })
14992
14992
  );
14993
14993
  if (t)
@@ -15374,7 +15374,7 @@ const xs = Ir("MsAuthPlugin", {
15374
15374
  let e;
15375
15375
  if (!(!n || n.error))
15376
15376
  if (e = Object.keys(n.sso), e.length)
15377
- e[1] === "azure" && this.microsoftLogin("sso", n.sso.azure.sso), e[1] === "okta" && this.oktaLogin(n.sso.okta.sso), e[1] === "saml" && this.samlLogin(n.sso.saml.sso.loginUrl);
15377
+ e[0] === "azure" && this.microsoftLogin("sso", n.sso.azure.sso), e[0] === "okta" && this.oktaLogin(n.sso.okta.sso), e[0] === "saml" && this.samlLogin(n.sso.saml.sso.loginUrl);
15378
15378
  else
15379
15379
  return this.forceClose(), this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins);
15380
15380
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
@@ -27,10 +27,7 @@ export default {
27
27
  scopes: ["User.Read"],
28
28
  knownAuthorities: [],
29
29
  keyHash: "4+5wCp8QcLptlO0aeP5RDTTOWyg=", // Android,
30
- redirectUri:
31
- import.meta.env.DEV
32
- ? `${window.location.origin}/login`
33
- : "https://" + window.location.host + "/login",
30
+ redirectUri: `${window.location.origin}/login`
34
31
  })
35
32
  );
36
33
  if (errAuth) {
@@ -364,10 +364,10 @@ export default {
364
364
  this.forceClose();
365
365
  return this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins);
366
366
  } else {
367
- if (ssoTypes[1] === "azure")
367
+ if (ssoTypes[0] === "azure")
368
368
  this.microsoftLogin("sso", response.sso.azure.sso);
369
- if (ssoTypes[1] === "okta") this.oktaLogin(response.sso.okta.sso);
370
- if (ssoTypes[1] === "saml")
369
+ if (ssoTypes[0] === "okta") this.oktaLogin(response.sso.okta.sso);
370
+ if (ssoTypes[0] === "saml")
371
371
  this.samlLogin(response.sso.saml.sso.loginUrl);
372
372
  }
373
373
  }