@tapni/auth 0.0.170 → 0.0.172

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 (69) hide show
  1. package/README.md +2 -0
  2. package/dist/.vite/manifest.json +18 -10
  3. package/dist/.well-known/assetlinks.json +10 -12
  4. package/dist/.well-known/microsoft-identity-association.json +5 -5
  5. package/dist/{Account-6F9eRo1R.js → Account-BVGvxZ85.js} +31 -32
  6. package/dist/{QR-2Izy5Dj4.js → QR-DwjajyG2.js} +3 -3
  7. package/dist/TapniAuth.es.js +1 -1
  8. package/dist/TapniAuth.umd.js +9 -9
  9. package/dist/blank.html +31 -0
  10. package/dist/{install-co2F1hxN.js → install-B8fBS6C4.js} +752 -996
  11. package/dist/site.webmanifest +11 -1
  12. package/dist/style.css +1 -1
  13. package/dist/{web-NrPZl3qD.js → web-XbruGdlD.js} +2 -5
  14. package/package.json +64 -55
  15. package/src/.prettierrc.json +16 -0
  16. package/src/App.vue +249 -265
  17. package/src/components/Language.vue +66 -143
  18. package/src/components/LinkIcon.vue +174 -225
  19. package/src/components/ModalOverlay.vue +47 -50
  20. package/src/components/OTP.vue +64 -94
  21. package/src/components/SSO.vue +80 -111
  22. package/src/components/SSOPick.vue +93 -148
  23. package/src/eslint.config.js +15 -0
  24. package/src/install.js +9 -10
  25. package/src/main.js +54 -57
  26. package/src/mixins/apple.mixin.js +56 -54
  27. package/src/mixins/auth.mixin.js +21 -74
  28. package/src/mixins/facebook.mixin.js +67 -66
  29. package/src/mixins/global.mixin.js +107 -109
  30. package/src/mixins/google.mixin.js +53 -54
  31. package/src/mixins/mfa-auth.mixin.js +68 -68
  32. package/src/mixins/microsoft.mixin.js +67 -75
  33. package/src/mixins/okta.mixin.js +50 -57
  34. package/src/mixins/qr-auth.mixin.js +111 -107
  35. package/src/mixins/saml.mixin.js +97 -48
  36. package/src/router/index.js +6 -6
  37. package/src/routes.js +60 -66
  38. package/src/services/Api.js +55 -57
  39. package/src/services/AuthService.js +75 -75
  40. package/src/services/CompanyService.js +10 -10
  41. package/src/services/DeviceService.js +3 -3
  42. package/src/services/UserService.js +45 -45
  43. package/src/services/UtilService.js +256 -218
  44. package/src/store/auth.js +471 -543
  45. package/src/store/constants.js +1 -1
  46. package/src/store/event-bus.js +22 -22
  47. package/src/store/locales/cn.js +442 -458
  48. package/src/store/locales/de.js +438 -517
  49. package/src/store/locales/en.js +449 -510
  50. package/src/store/locales/es.js +442 -524
  51. package/src/store/locales/fr.js +442 -516
  52. package/src/store/locales/it.js +442 -514
  53. package/src/store/locales/kr.js +442 -491
  54. package/src/store/locales/lang.js +43 -43
  55. package/src/store/locales/sr.js +439 -492
  56. package/src/store/locales/tr.js +436 -487
  57. package/src/store/store.js +6 -6
  58. package/src/views/Account.vue +169 -207
  59. package/src/views/Callback.vue +36 -33
  60. package/src/views/Login.vue +220 -392
  61. package/src/views/MFA.vue +89 -103
  62. package/src/views/QR.vue +25 -28
  63. package/src/views/Register.vue +201 -205
  64. package/src/views/Reset.vue +132 -135
  65. package/src/views/Verify.vue +153 -151
  66. package/src/views/Welcome.vue +61 -60
  67. /package/dist/{web-L3jORB19.js → web-AXRKjAOB.js} +0 -0
  68. /package/dist/{web-5VtGcKeU.js → web-IFGkBi0t.js} +0 -0
  69. /package/dist/{web-AImUTDQQ.js → web-LIfHmYL2.js} +0 -0
@@ -1,168 +1,91 @@
1
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>
2
+ <div class="menu-wrapper menu-light menu-white menu-modal center-text activate-page" :class="{ 'active-menu': toggle }" style="height: auto; max-height: 92vh; margin-top: -172.5px">
3
+ <a @click="close" class="color-black pull-right pointer" style="margin-top: 5px; position: absolute; right: 5px">
4
+ <i class="font-17 fa color-black">
5
+ <img src="https://cdn.tapni.co/icons/down-arrow.png" class="fa responsive-image" style="width: 45%" />
6
+ </i>
7
+ </a>
8
+ <h3 class="bold center-text color-black small-bottom">
9
+ {{ ssoLang[appLanguage].app_language }}
10
+ </h3>
23
11
 
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
- />
12
+ <LinkIcon @click.native="updateLanguage('en')" :link-style="'link-list'" :data="{ type: 'lang/en', text: ssoLang[this.appLanguage].english }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
32
13
 
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
- />
14
+ <LinkIcon @click.native="updateLanguage('es')" :link-style="'link-list'" :data="{ type: 'lang/es', text: ssoLang[this.appLanguage].spanish }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
41
15
 
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
- />
16
+ <LinkIcon @click.native="updateLanguage('de')" :link-style="'link-list'" :data="{ type: 'lang/de', text: ssoLang[this.appLanguage].german }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
50
17
 
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
- />
18
+ <LinkIcon @click.native="updateLanguage('it')" :link-style="'link-list'" :data="{ type: 'lang/it', text: ssoLang[this.appLanguage].italian }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
59
19
 
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
- />
20
+ <LinkIcon @click.native="updateLanguage('fr')" :link-style="'link-list'" :data="{ type: 'lang/fr', text: ssoLang[this.appLanguage].french }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
68
21
 
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
- />
22
+ <LinkIcon @click.native="updateLanguage('kr')" :link-style="'link-list'" :data="{ type: 'lang/kr', text: ssoLang[this.appLanguage].korean }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
77
23
 
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
- />
24
+ <LinkIcon @click.native="updateLanguage('sr')" :link-style="'link-list'" :data="{ type: 'lang/sr', text: ssoLang[this.appLanguage].serbian }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
86
25
 
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
- />
26
+ <LinkIcon @click.native="updateLanguage('tr')" :link-style="'link-list'" :data="{ type: 'lang/tr', text: ssoLang[this.appLanguage].turkish }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
95
27
 
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>
28
+ <LinkIcon @click.native="updateLanguage('cn')" :link-style="'link-list'" :data="{ type: 'lang/cn', text: ssoLang[this.appLanguage].chinese }" :editing="false" :class="{ 'add-button': true }" :customLinkStyle="{ linkIcon: { display: 'none' } }" />
29
+ </div>
105
30
  </template>
106
31
 
107
32
  <script>
108
- import { EventBus } from "../store/event-bus.js";
109
- import LinkIcon from "./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";
33
+ import { EventBus } from '../store/event-bus.js';
34
+ import LinkIcon from './LinkIcon.vue';
35
+ import UtilService from '../services/UtilService.js';
36
+ import CONSTANTS from '../store/constants.js';
37
+ import { Device } from '@capacitor/device';
38
+ import AuthMixin from '../mixins/auth.mixin.js';
114
39
 
115
40
  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
- });
41
+ name: 'Language',
42
+ mixins: [AuthMixin],
43
+ components: { LinkIcon },
44
+ data() {
45
+ return {
46
+ toggle: false
47
+ };
48
+ },
49
+ async mounted() {
50
+ EventBus.$on('toggleSSOLanguageModal', this.toggleModal);
51
+ EventBus.$on('closeModal', () => {
52
+ this.toggle = false;
53
+ });
129
54
 
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
- },
55
+ let lang = this.isNative ? await Device.getLanguageCode() : UtilService.getFirstBrowserLanguage();
56
+ if (lang && CONSTANTS.SUPPORTED_LANGUAGES.includes(lang)) {
57
+ this.updateLanguage(lang);
58
+ }
59
+ },
60
+ beforeDestroy() {
61
+ EventBus['_events']['toggleSSOLanguageModal'].pop();
62
+ },
63
+ methods: {
64
+ forceClose() {
65
+ EventBus.$emit('closeModal');
66
+ },
67
+ close() {
68
+ this.forceClose();
69
+ },
70
+ async updateLanguage(lang) {
71
+ this.updateLang(lang);
72
+ EventBus.$emit('closeModal');
73
+ },
74
+ toggleModal() {
75
+ this.toggle = !this.toggle;
76
+ }
77
+ }
155
78
  };
156
79
  </script>
157
80
 
158
81
  <style scoped>
159
82
  .user-img {
160
- margin: 0 auto;
161
- margin-top: 2px;
162
- width: 65px;
83
+ margin: 0 auto;
84
+ margin-top: 2px;
85
+ width: 65px;
163
86
  }
164
87
  input {
165
- margin: 0 auto;
166
- height: 25px;
88
+ margin: 0 auto;
89
+ height: 25px;
167
90
  }
168
91
  </style>