@tapni/auth 0.0.109 → 0.0.118

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.
Files changed (44) hide show
  1. package/dist/.vite/manifest.json +32 -0
  2. package/dist/Account-5DndxBQe.js +111 -0
  3. package/dist/QR-rB8KdJig.js +41 -0
  4. package/dist/TapniAuth.es.js +2 -16733
  5. package/dist/TapniAuth.umd.js +39 -39
  6. package/dist/install-QOxCq9FJ.js +18408 -0
  7. package/dist/style.css +1 -1
  8. package/dist/web-AImUTDQQ.js +54 -0
  9. package/package.json +6 -3
  10. package/src/App.vue +55 -11
  11. package/src/components/Language.vue +1 -1
  12. package/src/components/ModalOverlay.vue +1 -0
  13. package/src/components/OTP.vue +120 -0
  14. package/src/install.js +0 -3
  15. package/src/main.js +3 -11
  16. package/src/mixins/apple.mixin.js +2 -2
  17. package/src/mixins/auth.mixin.js +52 -509
  18. package/src/mixins/facebook.mixin.js +2 -2
  19. package/src/mixins/global.mixin.js +5 -4
  20. package/src/mixins/google.mixin.js +2 -2
  21. package/src/mixins/mfa-auth.mixin.js +76 -0
  22. package/src/mixins/microsoft.mixin.js +3 -7
  23. package/src/mixins/okta.mixin.js +1 -1
  24. package/src/mixins/qr-auth.mixin.js +6 -1
  25. package/src/mixins/saml.mixin.js +2 -1
  26. package/src/routes.js +13 -0
  27. package/src/services/Api.js +15 -28
  28. package/src/services/AuthService.js +42 -37
  29. package/src/services/CompanyService.js +7 -8
  30. package/src/services/DeviceService.js +5 -6
  31. package/src/services/UserService.js +22 -23
  32. package/src/services/UtilService.js +1 -1
  33. package/src/store/locales/en.js +8 -1
  34. package/src/store/store.js +563 -0
  35. package/src/views/Account.vue +236 -0
  36. package/src/views/Login.vue +29 -15
  37. package/src/views/MFA.vue +109 -0
  38. package/src/views/Register.vue +10 -10
  39. package/src/views/Reset.vue +3 -3
  40. package/src/views/Verify.vue +4 -4
  41. package/src/views/Welcome.vue +3 -2
  42. package/src/styles/framework.css +0 -4012
  43. package/src/styles/inter.ttf +0 -0
  44. package/src/styles/style.css +0 -618
@@ -1,4 +1,15 @@
1
1
  {
2
+ "_install-QOxCq9FJ.js": {
3
+ "file": "install-QOxCq9FJ.js",
4
+ "dynamicImports": [
5
+ "src/views/Account.vue",
6
+ "src/views/QR.vue",
7
+ "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
8
+ "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
9
+ "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
10
+ "node_modules/@capacitor/preferences/dist/esm/web.js"
11
+ ]
12
+ },
2
13
  "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js": {
3
14
  "file": "web-NrPZl3qD.js",
4
15
  "src": "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
@@ -9,6 +20,11 @@
9
20
  "src": "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
10
21
  "isDynamicEntry": true
11
22
  },
23
+ "node_modules/@capacitor/preferences/dist/esm/web.js": {
24
+ "file": "web-AImUTDQQ.js",
25
+ "src": "node_modules/@capacitor/preferences/dist/esm/web.js",
26
+ "isDynamicEntry": true
27
+ },
12
28
  "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js": {
13
29
  "file": "web-5VtGcKeU.js",
14
30
  "src": "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
@@ -19,6 +35,22 @@
19
35
  "src": "src/install.js",
20
36
  "isEntry": true
21
37
  },
38
+ "src/views/Account.vue": {
39
+ "file": "Account-5DndxBQe.js",
40
+ "src": "src/views/Account.vue",
41
+ "isDynamicEntry": true,
42
+ "imports": [
43
+ "_install-QOxCq9FJ.js"
44
+ ]
45
+ },
46
+ "src/views/QR.vue": {
47
+ "file": "QR-rB8KdJig.js",
48
+ "src": "src/views/QR.vue",
49
+ "isDynamicEntry": true,
50
+ "imports": [
51
+ "_install-QOxCq9FJ.js"
52
+ ]
53
+ },
22
54
  "style.css": {
23
55
  "file": "style.css",
24
56
  "src": "style.css"
@@ -0,0 +1,111 @@
1
+ import { _ as l, A as d, E as g } from "./install-QOxCq9FJ.js";
2
+ import { openBlock as r, createElementBlock as p, createElementVNode as t, toDisplayString as i, createCommentVNode as c, pushScopeId as _, popScopeId as u } from "vue";
3
+ var h = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
4
+ const m = {
5
+ mixins: [d],
6
+ data() {
7
+ return {
8
+ expanded: !1,
9
+ addAccountReady: !1,
10
+ appVersion: h.APP_VERSION
11
+ };
12
+ },
13
+ async mounted() {
14
+ this.getAccountSettings();
15
+ },
16
+ methods: {
17
+ continueTo(e) {
18
+ console.log("continue to " + e);
19
+ },
20
+ addAccount() {
21
+ this.$router.push("/login");
22
+ },
23
+ switchAccount(e) {
24
+ console.log("switch", e);
25
+ },
26
+ toggleAccountSettingsModal() {
27
+ this.$router.push("/mfa");
28
+ },
29
+ toggleLanguageModal() {
30
+ g.$emit("toggleSSOLanguageModal");
31
+ },
32
+ logout() {
33
+ this.logout();
34
+ }
35
+ }
36
+ }, o = (e) => (_("data-v-99676a71"), e = e(), u(), e), v = {
37
+ class: "page-login content-boxed content-boxed-padding center-text",
38
+ style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
39
+ }, f = /* @__PURE__ */ o(() => /* @__PURE__ */ t("br", null, null, -1)), A = { class: "bold full-top no-bottom center-text" }, E = { class: "full-bottom half-top center-text color-black font-16" };
40
+ const L = { class: "container" }, P = { class: "settingsCard pointer left-text" }, b = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
41
+ /* @__PURE__ */ t("img", {
42
+ src: "https://cdn.tapni.co/icons/newSettings.svg",
43
+ style: { width: "50px", "border-radius": "20px" }
44
+ })
45
+ ], -1)), S = { class: "middle" }, w = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
46
+ /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
47
+ ], -1)), O = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "divider" }, null, -1)), V = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
48
+ /* @__PURE__ */ t("img", {
49
+ src: "https://cdn.tapni.co/icons/newPublicProfile.svg",
50
+ style: { width: "50px", "border-radius": "20px" }
51
+ })
52
+ ], -1)), k = { class: "middle" }, x = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
53
+ /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
54
+ ], -1)), I = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "divider" }, null, -1)), T = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
55
+ /* @__PURE__ */ t("img", {
56
+ src: "https://cdn.tapni.co/icons/newLogout.svg",
57
+ style: { width: "50px", "border-radius": "20px" }
58
+ })
59
+ ], -1)), N = { class: "middle" }, y = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
60
+ /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
61
+ ], -1));
62
+ function C(e, n, R, D, M, a) {
63
+ return r(), p("div", v, [
64
+ f,
65
+ t("h1", A, i(e.ssoLang[e.appLanguage].welcome) + ", " + i(e.account.name), 1),
66
+ t("p", E, i(e.account.email), 1),
67
+ (e.display, c("", !0)),
68
+ t("div", L, [
69
+ c("", !0),
70
+ t("div", P, [
71
+ t("div", {
72
+ class: "device",
73
+ onClick: n[4] || (n[4] = (...s) => a.toggleAccountSettingsModal && a.toggleAccountSettingsModal(...s))
74
+ }, [
75
+ b,
76
+ t("div", S, [
77
+ t("h4", null, i(e.ssoLang[e.appLanguage].mfa), 1)
78
+ ]),
79
+ w
80
+ ]),
81
+ O,
82
+ t("div", {
83
+ class: "device",
84
+ onClick: n[5] || (n[5] = (...s) => a.toggleLanguageModal && a.toggleLanguageModal(...s))
85
+ }, [
86
+ V,
87
+ t("div", k, [
88
+ t("h4", null, i(e.ssoLang[e.appLanguage].change_language), 1)
89
+ ]),
90
+ x
91
+ ]),
92
+ I,
93
+ t("div", {
94
+ class: "device",
95
+ onClick: n[6] || (n[6] = (...s) => a.logout && a.logout(...s))
96
+ }, [
97
+ T,
98
+ t("div", N, [
99
+ t("h4", null, i(e.ssoLang[e.appLanguage].logout), 1)
100
+ ]),
101
+ y
102
+ ]),
103
+ c("", !0)
104
+ ])
105
+ ])
106
+ ]);
107
+ }
108
+ const U = /* @__PURE__ */ l(m, [["render", C], ["__scopeId", "data-v-99676a71"]]);
109
+ export {
110
+ U as default
111
+ };
@@ -0,0 +1,41 @@
1
+ import { _ as s, A as a, Q as i } from "./install-QOxCq9FJ.js";
2
+ import { resolveComponent as l, openBlock as _, createElementBlock as r, createElementVNode as n, toDisplayString as o, createVNode as d, withCtx as u, createTextVNode as p } from "vue";
3
+ const g = {
4
+ name: "AuthQR",
5
+ mixins: [a, i]
6
+ }, h = { class: "page-login content-boxed content-boxed-padding" }, c = { style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "130px" } }, m = /* @__PURE__ */ n("br", null, null, -1), L = { class: "qrCodeLoginContainer center-text" }, b = /* @__PURE__ */ n("div", {
7
+ id: "qrCodeContainer",
8
+ class: "qrCodeRounded",
9
+ style: { "max-width": "100%" }
10
+ }, null, -1), f = /* @__PURE__ */ n("br", null, null, -1), y = /* @__PURE__ */ n("br", null, null, -1), C = { style: { margin: "0 auto", width: "85%", "text-align": "left" } }, v = { class: "center-text" }, k = /* @__PURE__ */ n("br", null, null, -1), q = /* @__PURE__ */ n("br", null, null, -1), w = /* @__PURE__ */ n("br", null, null, -1);
11
+ function x(e, A, Q, R, $, N) {
12
+ const t = l("router-link");
13
+ return _(), r("div", h, [
14
+ n("h5", c, o(e.ssoLang[e.appLanguage].use_tapni_on_the_web), 1),
15
+ m,
16
+ n("div", L, [
17
+ b,
18
+ f,
19
+ y,
20
+ n("div", C, [
21
+ n("h2", v, o(e.ssoLang[e.appLanguage].login_by_scanning_qr_code), 1),
22
+ k,
23
+ n("h4", null, o(e.ssoLang[e.appLanguage].open_tapni_app_on_your_phone), 1),
24
+ n("h4", null, o(e.ssoLang[e.appLanguage].go_to_settings_link_a_device), 1),
25
+ n("h4", null, o(e.ssoLang[e.appLanguage].point_your_phone_at_this_qr_code), 1),
26
+ q,
27
+ w
28
+ ]),
29
+ d(t, { to: "/login" }, {
30
+ default: u(() => [
31
+ p(o(e.ssoLang[e.appLanguage].choose_other_login_methods), 1)
32
+ ]),
33
+ _: 1
34
+ })
35
+ ])
36
+ ]);
37
+ }
38
+ const E = /* @__PURE__ */ s(g, [["render", x]]);
39
+ export {
40
+ E as default
41
+ };