@tapni/auth 1.0.5 → 1.0.6-3.dev

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 (78) hide show
  1. package/README.md +2 -0
  2. package/dist/.vite/manifest.json +16 -43
  3. package/dist/.well-known/assetlinks.json +10 -12
  4. package/dist/.well-known/microsoft-identity-association.json +5 -5
  5. package/dist/{Apps-DMds3Dv-.js → Apps-XNA4_3B4.js} +34 -34
  6. package/dist/Billing-Br0-fHed.js +256 -0
  7. package/dist/CustomApp-CrlbYDOm.js +83 -0
  8. package/dist/QR-Bvqb60-E.js +41 -0
  9. package/dist/TapniAuth.es.js +1 -1
  10. package/dist/TapniAuth.umd.js +49 -23
  11. package/dist/{install-L-cxSovH.js → install-7FOVy8Ol.js} +6267 -4743
  12. package/dist/site.webmanifest +11 -1
  13. package/dist/style.css +1 -1
  14. package/dist/{web-IFGkBi0t.js → web-UrTMimK1.js} +2 -2
  15. package/package.json +65 -55
  16. package/src/.prettierrc.json +16 -0
  17. package/src/App.vue +326 -269
  18. package/src/eslint.config.js +15 -0
  19. package/src/index.js +4 -0
  20. package/src/install.js +9 -10
  21. package/src/main.js +54 -57
  22. package/src/mixins/apple.mixin.js +56 -54
  23. package/src/mixins/auth.mixin.js +3 -2
  24. package/src/mixins/global.mixin.js +3 -3
  25. package/src/mixins/google.mixin.js +53 -54
  26. package/src/mixins/microsoft.mixin.js +2 -5
  27. package/src/mixins/okta.mixin.js +1 -1
  28. package/src/mixins/qr-auth.mixin.js +111 -107
  29. package/src/mixins/saml.mixin.js +82 -45
  30. package/src/router/index.js +6 -6
  31. package/src/routes.js +1 -1
  32. package/src/services/Api.js +56 -58
  33. package/src/services/AuthService.js +7 -9
  34. package/src/services/CompanyService.js +10 -10
  35. package/src/services/DeviceService.js +3 -3
  36. package/src/services/UserService.js +48 -45
  37. package/src/services/UtilService.js +317 -225
  38. package/src/store/auth.js +485 -549
  39. package/src/store/constants.js +2 -2
  40. package/src/store/event-bus.js +22 -22
  41. package/src/store/locales/cn.js +476 -458
  42. package/src/store/locales/de.js +478 -517
  43. package/src/store/locales/en.js +454 -513
  44. package/src/store/locales/es.js +477 -524
  45. package/src/store/locales/fr.js +477 -516
  46. package/src/store/locales/it.js +477 -514
  47. package/src/store/locales/ja.js +488 -0
  48. package/src/store/locales/kr.js +477 -491
  49. package/src/store/locales/lang.js +51 -43
  50. package/src/store/locales/pt.js +488 -0
  51. package/src/store/locales/sr.js +477 -492
  52. package/src/store/locales/tr.js +477 -487
  53. package/src/store/store.js +6 -6
  54. package/src/views/Account.vue +36 -8
  55. package/src/views/Billing.vue +464 -34
  56. package/src/views/Callback.vue +36 -33
  57. package/src/views/General.vue +151 -185
  58. package/src/views/Login.vue +2 -25
  59. package/src/views/Register.vue +2 -12
  60. package/src/views/Reset.vue +132 -135
  61. package/src/views/Security.vue +13 -7
  62. package/src/views/Verify.vue +153 -151
  63. package/src/views/Welcome.vue +85 -71
  64. package/dist/Account-Cuz87g_8.js +0 -153
  65. package/dist/Billing-BXlQEuNy.js +0 -113
  66. package/dist/CustomApp-CLCMXmMO.js +0 -83
  67. package/dist/General-dW73bMoR.js +0 -479
  68. package/dist/QR-D6ZGcPM0.js +0 -41
  69. package/dist/index.css +0 -193
  70. package/dist/web-AXRKjAOB.js +0 -92
  71. package/src/components/DELETE_Language.vue +0 -168
  72. package/src/components/DELETE_LinkIcon.vue +0 -288
  73. package/src/components/DELETE_ModalOverlay.vue +0 -68
  74. package/src/components/DELETE_OTP.vue +0 -105
  75. package/src/components/DELETE_SSO.vue +0 -120
  76. package/src/components/DELETE_SSOPick.vue +0 -166
  77. package/src/mixins/DELETE_mfa-auth.mixin.js +0 -53
  78. package/src/mixins/facebook.mixin.js +0 -78
@@ -1,41 +0,0 @@
1
- import { _ as s, A as a, Q as l } from "./install-L-cxSovH.js";
2
- import { resolveComponent as i, 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, l]
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: "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), v = { style: { margin: "0 auto", width: "85%", "text-align": "left" } }, k = { class: "center-text" }, w = /* @__PURE__ */ n("br", null, null, -1), C = /* @__PURE__ */ n("br", null, null, -1), q = /* @__PURE__ */ n("br", null, null, -1);
11
- function x(e, A, Q, R, $, N) {
12
- const t = i("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", v, [
21
- n("h2", k, o(e.ssoLang[e.appLanguage].login_by_scanning_qr_code), 1),
22
- w,
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
- C,
27
- q
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
- };
package/dist/index.css DELETED
@@ -1,193 +0,0 @@
1
- .container {
2
- padding: 10px 0!important;
3
- display: flex;
4
- flex-direction: column;
5
- gap: 10px;
6
- padding-bottom: 100px !important;
7
- }
8
- .settingsCard {
9
- background-color: white;
10
- padding: 20px;
11
- border-radius: 26px;
12
- align-items: center;
13
- }
14
-
15
- .device {
16
- display: flex;
17
- align-items: center;
18
- }
19
-
20
- h4 {
21
- margin-left: 20px;
22
- font-weight: bold;
23
- }
24
-
25
- .middle {
26
- flex: 1;
27
- }
28
-
29
- .left img {
30
- background-color: #f7f8f9;
31
- border-radius: 20px;
32
- padding: 10px;
33
- }
34
-
35
- .divider {
36
- height: 1px;
37
- background-color: #f0f0f0;
38
- margin: 20px 0;
39
- }
40
-
41
- .moreFooter {
42
- display: flex;
43
- align-items: center;
44
- justify-content: space-between;
45
- padding: 0 10px;
46
- }
47
-
48
- .settingRow{
49
- background-color: #F4F4F4;
50
- padding: 10px 9px;
51
- border-radius: 15px;
52
- cursor: pointer;
53
- }
54
-
55
- .settingRow .firstRow,
56
- .settingRow .secondRow {
57
- display: flex;
58
- align-items: center;
59
- min-height: 35px;
60
- }
61
-
62
- .settingRow .firstRow h4 {
63
- text-align: left;
64
- flex: 1;
65
- margin-left: 20px;
66
- font-weight: 600;
67
- margin-bottom: 0;
68
- }
69
-
70
- .settingRow .secondRow {
71
- font-size: 8px;
72
- margin-top: 20px;
73
- }
74
-
75
- .settingRow .secondRow p {
76
- flex: 1;
77
- color: #999999;
78
- }
79
-
80
- .withBackground {
81
- background-color: #ffffff;
82
- border-radius: 10px;
83
- padding: 10px;
84
- width: 50px;
85
- }
86
-
87
-
88
- .ios-switch {
89
- position: relative;
90
- width: 60px;
91
- padding-top: 4px;
92
- padding-right: 4px;
93
- margin-left: 4px;
94
- -webkit-user-select: none;
95
- -moz-user-select: none;
96
- -ms-user-select: none;
97
- }
98
- .ios-switch-checkbox {
99
- display: none;
100
- }
101
- .ios-switch-label {
102
- background-color: #e3e3e3;
103
- display: block;
104
- overflow: initial;
105
- cursor: pointer;
106
- height: 30px;
107
- padding: 0;
108
- line-height: 20px;
109
- border: 1px solid #e3e3e3;
110
- border-radius: 25px;
111
- transition: all 250ms ease;
112
- }
113
- .ios-switch-label:before {
114
- content: "";
115
- display: block;
116
- width: 30px;
117
- margin: 0px;
118
- position: absolute;
119
- top: 0;
120
- bottom: 0;
121
- right: 24px;
122
- background-size: 15px;
123
- background-repeat: no-repeat;
124
- background-position: center;
125
- border: 2px solid #e3e3e3;
126
- border-radius: 25px;
127
- transition: all 250ms ease;
128
- }
129
-
130
- .ios-switch-checkbox:checked + .ios-switch-label {
131
- background-color: #151515;
132
- }
133
- .ios-switch-checkbox:checked + .ios-switch-label,
134
- .ios-switch-checkbox:checked + .ios-switch-label:before {
135
- border-color: #151515;
136
- }
137
- .ios-switch-checkbox:checked + .ios-switch-label:before {
138
- right: -1px;
139
- }
140
-
141
-
142
- .subheaderContainer {
143
- display: flex;
144
- align-items: center;
145
- position: relative;
146
- padding: 15px 25px;
147
- }
148
-
149
- .subheaderContainer .left-button {
150
- width: 40px!important;
151
- height: 40px!important;
152
- margin: 0;
153
- border-radius: 50%;
154
- background: #f4f4f4;
155
- display: flex;
156
- align-items: center;
157
- justify-content: center;
158
- position: absolute;
159
- left: 20px;
160
- }
161
-
162
- .subheaderContainer .button {
163
- width: 40px!important;
164
- height: 40px!important;
165
- margin: 0;
166
- border-radius: 50%;
167
- background: #f4f4f4;
168
- display: flex;
169
- align-items: center;
170
- justify-content: center;
171
- position: absolute;
172
- }
173
-
174
- .subheaderContainer .button img {
175
- top: 0!important;
176
- margin-right: 3px!important;
177
- }
178
-
179
- .subheaderContainer .left-button {
180
- left: 20px;
181
- }
182
-
183
- .subheaderContainer .right-button {
184
- right: 20px;
185
- }
186
-
187
- .transition-icon {
188
- transition: 0.5s;
189
- }
190
-
191
- .rotate-icon {
192
- transform: translate(-50%, -50%) rotate(180deg)!important;
193
- }
@@ -1,92 +0,0 @@
1
- import { WebPlugin as i } from "@capacitor/core";
2
- class u extends i {
3
- async initialize(e) {
4
- const n = { version: "v17.0" };
5
- return await this.loadScript(e.locale), FB.init(Object.assign(Object.assign({}, n), e));
6
- }
7
- loadScript(e) {
8
- if (typeof document > "u")
9
- return Promise.reject("document global not found");
10
- const n = "fb";
11
- if (document.getElementById(n))
12
- return Promise.resolve();
13
- const r = document.getElementsByTagName("head")[0], s = document.createElement("script");
14
- return new Promise((o) => {
15
- s.onload = () => o(), s.defer = !0, s.async = !0, s.id = n, s.src = `https://connect.facebook.net/${e ?? "en_US"}/sdk.js`, r.appendChild(s);
16
- });
17
- }
18
- async login(e) {
19
- return new Promise((n, t) => {
20
- FB.login((r) => {
21
- r.status === "connected" ? n({
22
- accessToken: {
23
- token: r.authResponse.accessToken
24
- }
25
- }) : t({
26
- accessToken: {
27
- token: null
28
- }
29
- });
30
- }, { scope: e.permissions.join(",") });
31
- });
32
- }
33
- async logout() {
34
- return new Promise((e) => FB.logout(() => e()));
35
- }
36
- async reauthorize() {
37
- return new Promise((e) => FB.reauthorize((n) => e(n)));
38
- }
39
- async getCurrentAccessToken() {
40
- return new Promise((e, n) => {
41
- FB.getLoginStatus((t) => {
42
- if (t.status === "connected") {
43
- const r = {
44
- accessToken: {
45
- applicationId: void 0,
46
- declinedPermissions: [],
47
- expires: void 0,
48
- isExpired: void 0,
49
- lastRefresh: void 0,
50
- permissions: [],
51
- token: t.authResponse.accessToken,
52
- userId: t.authResponse.userID
53
- }
54
- };
55
- e(r);
56
- } else
57
- n({
58
- accessToken: {
59
- token: null
60
- }
61
- });
62
- });
63
- });
64
- }
65
- async getProfile(e) {
66
- const n = e.fields.join(",");
67
- return new Promise((t, r) => {
68
- FB.api("/me", { fields: n }, (s) => {
69
- if (s.error) {
70
- r(s.error.message);
71
- return;
72
- }
73
- t(s);
74
- });
75
- });
76
- }
77
- async logEvent() {
78
- return Promise.resolve();
79
- }
80
- async setAutoLogAppEventsEnabled() {
81
- return Promise.resolve();
82
- }
83
- async setAdvertiserTrackingEnabled() {
84
- return Promise.resolve();
85
- }
86
- async setAdvertiserIDCollectionEnabled() {
87
- return Promise.resolve();
88
- }
89
- }
90
- export {
91
- u as FacebookLoginWeb
92
- };
@@ -1,168 +0,0 @@
1
- <template>
2
- <div
3
- class="menu-wrapper menu-light menu-white menu-modal center-text activate-page"
4
- :class="{ 'active-menu': toggle }"
5
- style="height: auto; max-height: 92vh; margin-top: -172.5px"
6
- >
7
- <a
8
- @click="close"
9
- class="color-black pull-right pointer"
10
- style="margin-top: 5px; position: absolute; right: 5px"
11
- >
12
- <i class="font-17 fa color-black">
13
- <img
14
- src="https://cdn.tapni.co/icons/down-arrow.png"
15
- class="fa responsive-image"
16
- style="width: 45%"
17
- />
18
- </i>
19
- </a>
20
- <h3 class="bold center-text color-black small-bottom">
21
- {{ ssoLang[appLanguage].app_language }}
22
- </h3>
23
-
24
- <LinkIcon
25
- @click.native="updateLanguage('en')"
26
- :link-style="'link-list'"
27
- :data="{ type: 'lang/en', text: ssoLang[this.appLanguage].english }"
28
- :editing="false"
29
- :class="{ 'add-button': true }"
30
- :customLinkStyle="{ linkIcon: { display: 'none' }}"
31
- />
32
-
33
- <LinkIcon
34
- @click.native="updateLanguage('es')"
35
- :link-style="'link-list'"
36
- :data="{ type: 'lang/es', text: ssoLang[this.appLanguage].spanish }"
37
- :editing="false"
38
- :class="{ 'add-button': true }"
39
- :customLinkStyle="{ linkIcon: { display: 'none' }}"
40
- />
41
-
42
- <LinkIcon
43
- @click.native="updateLanguage('de')"
44
- :link-style="'link-list'"
45
- :data="{ type: 'lang/de', text: ssoLang[this.appLanguage].german }"
46
- :editing="false"
47
- :class="{ 'add-button': true }"
48
- :customLinkStyle="{ linkIcon: { display: 'none' }}"
49
- />
50
-
51
- <LinkIcon
52
- @click.native="updateLanguage('it')"
53
- :link-style="'link-list'"
54
- :data="{ type: 'lang/it', text: ssoLang[this.appLanguage].italian }"
55
- :editing="false"
56
- :class="{ 'add-button': true }"
57
- :customLinkStyle="{ linkIcon: { display: 'none' }}"
58
- />
59
-
60
- <LinkIcon
61
- @click.native="updateLanguage('fr')"
62
- :link-style="'link-list'"
63
- :data="{ type: 'lang/fr', text: ssoLang[this.appLanguage].french }"
64
- :editing="false"
65
- :class="{ 'add-button': true }"
66
- :customLinkStyle="{ linkIcon: { display: 'none' }}"
67
- />
68
-
69
- <LinkIcon
70
- @click.native="updateLanguage('kr')"
71
- :link-style="'link-list'"
72
- :data="{ type: 'lang/kr', text: ssoLang[this.appLanguage].korean }"
73
- :editing="false"
74
- :class="{ 'add-button': true }"
75
- :customLinkStyle="{ linkIcon: { display: 'none' }}"
76
- />
77
-
78
- <LinkIcon
79
- @click.native="updateLanguage('sr')"
80
- :link-style="'link-list'"
81
- :data="{ type: 'lang/sr', text: ssoLang[this.appLanguage].serbian }"
82
- :editing="false"
83
- :class="{ 'add-button': true }"
84
- :customLinkStyle="{ linkIcon: { display: 'none' }}"
85
- />
86
-
87
- <LinkIcon
88
- @click.native="updateLanguage('tr')"
89
- :link-style="'link-list'"
90
- :data="{ type: 'lang/tr', text: ssoLang[this.appLanguage].turkish }"
91
- :editing="false"
92
- :class="{ 'add-button': true }"
93
- :customLinkStyle="{ linkIcon: { display: 'none' }}"
94
- />
95
-
96
- <LinkIcon
97
- @click.native="updateLanguage('cn')"
98
- :link-style="'link-list'"
99
- :data="{ type: 'lang/cn', text: ssoLang[this.appLanguage].chinese }"
100
- :editing="false"
101
- :class="{ 'add-button': true }"
102
- :customLinkStyle="{ linkIcon: { display: 'none' }}"
103
- />
104
- </div>
105
- </template>
106
-
107
- <script>
108
- import { EventBus } from "../store/event-bus.js";
109
- import LinkIcon from "./DELETE_LinkIcon.vue";
110
- import UtilService from "../services/UtilService.js";
111
- import CONSTANTS from "../store/constants.js";
112
- import { Device } from "@capacitor/device";
113
- import AuthMixin from "../mixins/auth.mixin.js";
114
-
115
- export default {
116
- name: "Language",
117
- mixins: [AuthMixin],
118
- components: { LinkIcon },
119
- data() {
120
- return {
121
- toggle: false,
122
- };
123
- },
124
- async mounted() {
125
- EventBus.$on("toggleSSOLanguageModal", this.toggleModal);
126
- EventBus.$on("closeModal", () => {
127
- this.toggle = false;
128
- });
129
-
130
- let lang = this.isNative
131
- ? await Device.getLanguageCode()
132
- : UtilService.getFirstBrowserLanguage();
133
- if (lang && CONSTANTS.SUPPORTED_LANGUAGES.includes(lang)) {
134
- this.updateLanguage(lang);
135
- }
136
- },
137
- beforeDestroy() {
138
- EventBus["_events"]["toggleSSOLanguageModal"].pop();
139
- },
140
- methods: {
141
- forceClose() {
142
- EventBus.$emit("closeModal");
143
- },
144
- close() {
145
- this.forceClose();
146
- },
147
- async updateLanguage(lang) {
148
- this.updateLang(lang);
149
- EventBus.$emit("closeModal");
150
- },
151
- toggleModal() {
152
- this.toggle = !this.toggle;
153
- },
154
- },
155
- };
156
- </script>
157
-
158
- <style scoped>
159
- .user-img {
160
- margin: 0 auto;
161
- margin-top: 2px;
162
- width: 65px;
163
- }
164
- input {
165
- margin: 0 auto;
166
- height: 25px;
167
- }
168
- </style>