@tapni/auth 0.0.74 → 0.0.75

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.
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .app-store-icon[data-v-c4cf0a57]{box-shadow:0 4px 10px #00000017;border-radius:12px}#codeInput[data-v-af1531aa],#emailInput[data-v-af1531aa],#emailInput[data-v-4f85b89a]{text-align:center;padding-right:15%;font-size:17px}.fade-enter-to[data-v-a128c2fa]{opacity:1}.sso-img[data-v-11f19a09]{margin:2px auto 0;width:35px}input[data-v-11f19a09]{margin:0 auto;height:25px}.sso-img[data-v-4f821f65]{margin:2px auto 0;width:35px}input[data-v-4f821f65]{margin:0 auto;height:25px}.link-grid,.user-link-img{width:100%;display:inline-table;position:relative}.link-grid{width:30%;margin:1.6%;padding:1.6%}.link-grid .user-link-img img{border-radius:25%!important}.link-grid .edit-icon{border-radius:20px;right:-3%;top:-3%;position:absolute;z-index:3;max-width:23%;overflow:hidden;min-width:30px}.link-grid .direct-icon{border-radius:20px;left:-3%;top:-3%;position:absolute;z-index:555;max-width:23%;overflow:hidden;min-width:30px}.link-grid .link-text{min-height:20px;margin-top:3px!important;display:block;text-align:center;line-height:normal;overflow-wrap:anywhere}.link-list{width:93%;max-height:67px!important;margin:0 auto;display:flex;border-radius:15px!important;background-color:#fff;border:solid 1px #e8e8e8;position:relative;align-items:center}.link-list .user-link-img{display:inline-block;width:65px;border-radius:25%!important}.link-list .link-text{display:inline-block;padding:18px 0% 17px 10%;font-size:15px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1;text-align:left;border-radius:15px!important}.link-list .edit-icon{border-radius:20px;right:7%;top:30%;position:absolute;z-index:3;width:26px;overflow:hidden}.link-list .switching{width:45px}.link-list .direct-icon{border-radius:20px;left:-2%;top:-13%;position:absolute;z-index:555;width:26px;overflow:hidden}.small{width:22%!important;margin:2% 4% 0%;padding:0%}.small .link-text{margin-top:0!important;font-size:13px}.linkExternal{margin-right:20px;width:20px;display:inline-block!important;height:20px;background:#000;-webkit-mask:url(https://cdn.tapni.co/icons/link-external.svg) no-repeat center;mask:url(https://cdn.tapni.co/icons/link-external.svg) no-repeat center;transform:scale(1.5)}.user-img[data-v-34a6b7b2]{margin:2px auto 0;width:65px}input[data-v-34a6b7b2]{margin:0 auto;height:25px}html *{font-family:Inter,sans-serif}#bodyId{padding-top:3%;max-width:550px!important;margin:1.5% auto auto;height:95%!important;border-radius:20px}.action-block-top .default-text,.action-block-top .default-text:after{border-radius:50%;width:10em!important;height:10em!important}.action-block-top .default-text{margin:10px auto;font-size:3px;position:relative;text-indent:-9999em;border-left:.5em solid #000000;border-top:.5em solid rgba(0,0,0,.2);border-right:.5em solid rgba(0,0,0,.2);border-bottom:.5em solid rgba(0,0,0,.2);-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.smartbanner-ios{background:linear-gradient(to bottom,#f4f4f4,#f4f4f4);box-shadow:0 0 #fff;border-bottom:1px solid #dddddd}.smartbanner-icon{border-radius:16px}.smartbanner-ios .smartbanner-button{font-size:13px;padding:9px 0;height:40px;border-radius:13px;background:#f4f4f4;color:#0a99d2;border:none;box-shadow:none;text-transform:uppercase}.snack-body{display:none;border-radius:40px;font-size:15px!important}#errorSnack{background-color:#fee3e3!important;border:2px solid #edd9d9!important;color:#000}#successSnack{background-color:#eff5eb!important;border:2px solid #e3ecd7!important;color:#000}.grecaptcha-badge{visibility:hidden}.header-logo{position:absolute;left:50%;transform:translate(-50%,-50%);margin-top:0;z-index:2}.header-logo-img{height:40px;margin-top:10px}
1
+ .app-store-icon[data-v-c4cf0a57]{box-shadow:0 4px 10px #00000017;border-radius:12px}#codeInput[data-v-75db7f02],#emailInput[data-v-75db7f02],#emailInput[data-v-4f85b89a]{text-align:center;padding-right:15%;font-size:17px}.fade-enter-to[data-v-a128c2fa]{opacity:1}.sso-img[data-v-11f19a09]{margin:2px auto 0;width:35px}input[data-v-11f19a09]{margin:0 auto;height:25px}.sso-img[data-v-4f821f65]{margin:2px auto 0;width:35px}input[data-v-4f821f65]{margin:0 auto;height:25px}.link-grid,.user-link-img{width:100%;display:inline-table;position:relative}.link-grid{width:30%;margin:1.6%;padding:1.6%}.link-grid .user-link-img img{border-radius:25%!important}.link-grid .edit-icon{border-radius:20px;right:-3%;top:-3%;position:absolute;z-index:3;max-width:23%;overflow:hidden;min-width:30px}.link-grid .direct-icon{border-radius:20px;left:-3%;top:-3%;position:absolute;z-index:555;max-width:23%;overflow:hidden;min-width:30px}.link-grid .link-text{min-height:20px;margin-top:3px!important;display:block;text-align:center;line-height:normal;overflow-wrap:anywhere}.link-list{width:93%;max-height:67px!important;margin:0 auto;display:flex;border-radius:15px!important;background-color:#fff;border:solid 1px #e8e8e8;position:relative;align-items:center}.link-list .user-link-img{display:inline-block;width:65px;border-radius:25%!important}.link-list .link-text{display:inline-block;padding:18px 0% 17px 10%;font-size:15px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1;text-align:left;border-radius:15px!important}.link-list .edit-icon{border-radius:20px;right:7%;top:30%;position:absolute;z-index:3;width:26px;overflow:hidden}.link-list .switching{width:45px}.link-list .direct-icon{border-radius:20px;left:-2%;top:-13%;position:absolute;z-index:555;width:26px;overflow:hidden}.small{width:22%!important;margin:2% 4% 0%;padding:0%}.small .link-text{margin-top:0!important;font-size:13px}.linkExternal{margin-right:20px;width:20px;display:inline-block!important;height:20px;background:#000;-webkit-mask:url(https://cdn.tapni.co/icons/link-external.svg) no-repeat center;mask:url(https://cdn.tapni.co/icons/link-external.svg) no-repeat center;transform:scale(1.5)}.user-img[data-v-34a6b7b2]{margin:2px auto 0;width:65px}input[data-v-34a6b7b2]{margin:0 auto;height:25px}html *{font-family:Inter,sans-serif}#bodyId{padding-top:3%;max-width:550px!important;margin:1.5% auto auto;height:95%!important;border-radius:20px}.action-block-top .default-text,.action-block-top .default-text:after{border-radius:50%;width:10em!important;height:10em!important}.action-block-top .default-text{margin:10px auto;font-size:3px;position:relative;text-indent:-9999em;border-left:.5em solid #000000;border-top:.5em solid rgba(0,0,0,.2);border-right:.5em solid rgba(0,0,0,.2);border-bottom:.5em solid rgba(0,0,0,.2);-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.smartbanner-ios{background:linear-gradient(to bottom,#f4f4f4,#f4f4f4);box-shadow:0 0 #fff;border-bottom:1px solid #dddddd}.smartbanner-icon{border-radius:16px}.smartbanner-ios .smartbanner-button{font-size:13px;padding:9px 0;height:40px;border-radius:13px;background:#f4f4f4;color:#0a99d2;border:none;box-shadow:none;text-transform:uppercase}.snack-body{display:none;border-radius:40px;font-size:15px!important}#errorSnack{background-color:#fee3e3!important;border:2px solid #edd9d9!important;color:#000}#successSnack{background-color:#eff5eb!important;border:2px solid #e3ecd7!important;color:#000}.grecaptcha-badge{visibility:hidden}.header-logo{position:absolute;left:50%;transform:translate(-50%,-50%);margin-top:0;z-index:2}.header-logo-img{height:40px;margin-top:10px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "0.0.74",
3
+ "version": "0.0.75",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
package/src/App.vue CHANGED
@@ -136,6 +136,7 @@ export default {
136
136
  const refreshTokens = this.getRefreshTokens();
137
137
  this.setRefreshToken(refreshTokens[0]);
138
138
  await this.getLoggedInAccounts();
139
+ this.setStorage();
139
140
 
140
141
  // Let App know that the auth is ready
141
142
  this.$emit('ssoLibraryReady');
@@ -44,7 +44,7 @@ export default {
44
44
  return window.parent?.postMessage({ code: response.data.auth_code, state: this.$route.query.state }, '*');
45
45
  }
46
46
  await this.loginSetup(response)
47
- this.getLoggedInAccounts()
47
+ await this.getLoggedInAccounts()
48
48
  this.loginSuccess({ ...response, isModal: this.isModal });
49
49
  setTimeout(() => {
50
50
  this.appleLoad = false
@@ -276,7 +276,7 @@ export default {
276
276
  if (response.data.success) {
277
277
  if (this.display === "npm") {
278
278
  this.loginSetup({ ...response, isModal: data.isModal });
279
- this.getLoggedInAccounts();
279
+ await this.getLoggedInAccounts();
280
280
  }
281
281
 
282
282
  this.loginSuccess({ ...response, isModal: data.isModal });
@@ -308,6 +308,7 @@ export default {
308
308
  });
309
309
  } else if (this.display === "npm") {
310
310
  EventBus.$emit('ssoEvent', {name: 'setLoading', data: true})
311
+ EventBus.$emit("ssoEvent", { name: "setStorage", data: this.$storage });
311
312
  EventBus.$emit("ssoEvent", { name: "getUser", data: { login: true, username: response.data.data.username } });
312
313
 
313
314
  if (response.isModal) {
@@ -509,21 +510,17 @@ export default {
509
510
  }
510
511
 
511
512
  this.$storage.refreshTokens = refreshTokens.join(",");
512
-
513
- EventBus.$emit("setStorage", this.$storage);
514
- EventBus.$emit("ssoEvent", { name: "setRefreshToken", data: token });
515
513
  },
516
514
  setToken(token) {
517
515
  this.$storage.token = token;
518
516
  this.token = token;
519
- EventBus.$emit("setStorage", this.$storage);
520
517
  },
521
518
  setUserID(userID) {
522
519
  this.$storage.UserId = userID;
523
520
  },
524
521
  updateLang(lang) {
525
522
  this.appLanguage = lang;
526
- },
523
+ }
527
524
  },
528
525
  watch: {
529
526
  "$route.query": {
@@ -62,7 +62,7 @@ export default {
62
62
  return window.parent?.postMessage({ code: response.data.auth_code, state: this.$route.query.state }, '*');
63
63
  }
64
64
  await this.loginSetup(response)
65
- this.getLoggedInAccounts()
65
+ await this.getLoggedInAccounts()
66
66
  this.$router.push('/' + response.data.data.username + '#edit')
67
67
  setTimeout(() => {
68
68
  this.facebookLoad = false
@@ -45,7 +45,7 @@ export default {
45
45
  return window.parent?.postMessage({ code: response.data.auth_code, state: this.$route.query.state }, '*');
46
46
  }
47
47
  await this.loginSetup(response)
48
- this.getLoggedInAccounts()
48
+ await this.getLoggedInAccounts()
49
49
  this.loginSuccess({ ...response, isModal: this.isModal });
50
50
  setTimeout(() => {
51
51
  this.googleLoad = false
@@ -66,7 +66,7 @@ export default {
66
66
  );
67
67
  }
68
68
  await this.loginSetup(response);
69
- this.getLoggedInAccounts();
69
+ await this.getLoggedInAccounts();
70
70
  this.loginSuccess({ ...response, isModal: this.isModal });
71
71
  setTimeout(() => {
72
72
  this.microsoftLoad = false;
@@ -43,7 +43,7 @@ export default {
43
43
  return window.parent?.postMessage({ code: response.data.auth_code, state: this.$route.query.state }, '*');
44
44
  }
45
45
  await this.loginSetup(response)
46
- this.getLoggedInAccounts()
46
+ await this.getLoggedInAccounts()
47
47
  this.$router.push('/' + response.data.data.username + '#edit')
48
48
  setTimeout(() => {
49
49
  this.appleLoad = false
@@ -90,7 +90,7 @@ export default {
90
90
  if (response.data.auth_code) {
91
91
  if (this.display === 'npm') {
92
92
  this.loginSetup({ ...response, isModal: this.isModal });
93
- this.getLoggedInAccounts();
93
+ await this.getLoggedInAccounts();
94
94
  }
95
95
 
96
96
  this.loginSuccess({ ...response, isModal: this.isModal });
@@ -192,7 +192,7 @@ export default {
192
192
  } else if (response.data.message === 'SUCCESS_LOGIN') {
193
193
  if (this.display === 'npm') {
194
194
  await this.loginSetup({ ...response, isModal: data.isModal });
195
- this.getLoggedInAccounts();
195
+ await this.getLoggedInAccounts();
196
196
  }
197
197
 
198
198
  await this.loginSuccess({ ...response, isModal: data.isModal });
@@ -124,7 +124,7 @@ export default {
124
124
  EventBus.$emit('closeModal')
125
125
  }
126
126
  await this.loginSetup(response)
127
- this.getLoggedInAccounts()
127
+ await this.getLoggedInAccounts()
128
128
  this.$storage.verifyEmail = '';
129
129
  this.$router.push('/' + response.data.data.username + '#edit')
130
130
  this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2)