@tapni/auth 0.0.158 → 0.0.163
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/.vite/manifest.json +6 -6
- package/dist/{Account-9gRJi_gS.js → Account-rIITKRRa.js} +1 -1
- package/dist/{QR-usDlkdAk.js → QR-CyFd5BF-.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +3 -3
- package/dist/{install-FKOGFQEK.js → install-ZmqL5ixy.js} +13 -8
- package/package.json +2 -1
- package/src/App.vue +1 -1
- package/src/mixins/global.mixin.js +1 -1
- package/src/store/auth.js +8 -2
|
@@ -1195,7 +1195,7 @@ Li(q);
|
|
|
1195
1195
|
const aa = {
|
|
1196
1196
|
computed: {
|
|
1197
1197
|
home() {
|
|
1198
|
-
return this.$storex && this.$storex.token && this.$storex.username ? "/" + this.$storex.username : "/welcome";
|
|
1198
|
+
return this.$storex && this.$storex.token && this.$storex.username ? "/" + this.$storex.username + "#gg" : "/welcome";
|
|
1199
1199
|
},
|
|
1200
1200
|
isAndroid() {
|
|
1201
1201
|
return /Android/i.test(navigator.userAgent) || Yn.getPlatform() === "android";
|
|
@@ -1412,7 +1412,7 @@ function ka(n, e, t, r, o, i) {
|
|
|
1412
1412
|
const po = /* @__PURE__ */ mt(ua, [["render", ka], ["__scopeId", "data-v-615ed484"]]), Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1413
1413
|
__proto__: null,
|
|
1414
1414
|
default: po
|
|
1415
|
-
}, Symbol.toStringTag, { value: "Module" })), Ea = "0.0.
|
|
1415
|
+
}, Symbol.toStringTag, { value: "Module" })), Ea = "0.0.163", hr = {
|
|
1416
1416
|
getMe() {
|
|
1417
1417
|
return ce().get("/users/me");
|
|
1418
1418
|
},
|
|
@@ -5553,7 +5553,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5553
5553
|
choose_other_login_methods: "다른 로그인 방법 선택하기",
|
|
5554
5554
|
no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
|
|
5555
5555
|
}
|
|
5556
|
-
}, Ao = () => Promise.resolve().then(() => Ca), Sa = () => Promise.resolve().then(() => qc), Ia = () => Promise.resolve().then(() => Ul), Aa = () => Promise.resolve().then(() => wd), Ra = () => import("./Account-
|
|
5556
|
+
}, Ao = () => Promise.resolve().then(() => Ca), Sa = () => Promise.resolve().then(() => qc), Ia = () => Promise.resolve().then(() => Ul), Aa = () => Promise.resolve().then(() => wd), Ra = () => import("./Account-rIITKRRa.js"), Pa = () => Promise.resolve().then(() => du), Ma = () => Promise.resolve().then(() => Id), Na = () => import("./QR-CyFd5BF-.js"), Oa = () => Promise.resolve().then(() => xu), La = [
|
|
5557
5557
|
{
|
|
5558
5558
|
path: "/welcome",
|
|
5559
5559
|
name: "AuthWelcome",
|
|
@@ -5612,7 +5612,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5612
5612
|
namespaced: !0,
|
|
5613
5613
|
state: {
|
|
5614
5614
|
$storex: {},
|
|
5615
|
-
view: "
|
|
5615
|
+
view: "",
|
|
5616
5616
|
lang: "en",
|
|
5617
5617
|
realm: "app",
|
|
5618
5618
|
refreshing: !1,
|
|
@@ -5653,7 +5653,12 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5653
5653
|
"https://qrcodetoolkit.com",
|
|
5654
5654
|
"https://qr.tapni.com",
|
|
5655
5655
|
"https://designer.tapni.com",
|
|
5656
|
-
"https://designer-dev.tapni.com"
|
|
5656
|
+
"https://designer-dev.tapni.com",
|
|
5657
|
+
"http://localhost:8082",
|
|
5658
|
+
"http://localhost:7777",
|
|
5659
|
+
"http://localhost:8086",
|
|
5660
|
+
"https://localhost:8085",
|
|
5661
|
+
"http://localhost:8085"
|
|
5657
5662
|
]
|
|
5658
5663
|
},
|
|
5659
5664
|
mutations: {
|
|
@@ -5807,14 +5812,14 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
5807
5812
|
);
|
|
5808
5813
|
if (o && o.response && o.response.data.error === "ACCESS_DENIED")
|
|
5809
5814
|
return n("logout", { refreshToken: r.refreshToken, sendRequest: !1 }), location.reload();
|
|
5810
|
-
i && i.data && n("setToken", i.data.token), e.refreshing = !1;
|
|
5815
|
+
i && i.data && (n("setToken", i.data.token), q.$emit("ssoEvent", { name: "setStorage", data: e.$storex })), e.refreshing = !1;
|
|
5811
5816
|
},
|
|
5812
5817
|
async login({ commit: n, state: e, dispatch: t }, r) {
|
|
5813
5818
|
const [o, i] = await fe($e.login(r));
|
|
5814
5819
|
if (o)
|
|
5815
5820
|
return t("errorHandler", o);
|
|
5816
5821
|
if (i.data.success)
|
|
5817
|
-
return e.display
|
|
5822
|
+
return e.display === "npm" && (t("loginSetup", { ...i, isModal: r.isModal }), await t("getLoggedInAccounts")), t("loginSuccess", { ...i, isModal: r.isModal }), !0;
|
|
5818
5823
|
},
|
|
5819
5824
|
loginSuccess({ commit: n, state: e, dispatch: t, getters: r }, o) {
|
|
5820
5825
|
if (e.display === "redirect")
|
|
@@ -18298,7 +18303,7 @@ const Pp = { id: "ssoapp" }, Mp = {
|
|
|
18298
18303
|
props: {
|
|
18299
18304
|
viewProp: {
|
|
18300
18305
|
type: String,
|
|
18301
|
-
default: "
|
|
18306
|
+
default: ""
|
|
18302
18307
|
},
|
|
18303
18308
|
isModal: {
|
|
18304
18309
|
type: Boolean,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapni/auth",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.163",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/TapniAuth.umd.js",
|
|
6
6
|
"module": "./dist/TapniAuth.es.js",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@rollup/plugin-inject": "^5.0.5",
|
|
50
50
|
"@vitejs/plugin-vue": "^4.5.2",
|
|
51
|
+
"office-addin-dev-certs": "^1.13.2",
|
|
51
52
|
"vite": "^5.0.10",
|
|
52
53
|
"vite-plugin-node-polyfills": "^0.22.0"
|
|
53
54
|
}
|
package/src/App.vue
CHANGED
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
computed: {
|
|
5
5
|
home() {
|
|
6
6
|
if (this.$storex && this.$storex.token && this.$storex.username) {
|
|
7
|
-
if (import.meta.env.VITE_APP_MODE === 'npm') return '/' + this.$storex.username
|
|
7
|
+
if (import.meta.env.VITE_APP_MODE === 'npm') return '/' + this.$storex.username + '#gg'
|
|
8
8
|
if (import.meta.env.VITE_APP_MODE === 'redirect') return '/account'
|
|
9
9
|
} else return '/welcome'
|
|
10
10
|
},
|
package/src/store/auth.js
CHANGED
|
@@ -20,7 +20,7 @@ export default {
|
|
|
20
20
|
namespaced: true,
|
|
21
21
|
state: {
|
|
22
22
|
$storex: {},
|
|
23
|
-
view: "
|
|
23
|
+
view: "",
|
|
24
24
|
lang: "en",
|
|
25
25
|
realm: "app",
|
|
26
26
|
refreshing: false,
|
|
@@ -62,6 +62,11 @@ export default {
|
|
|
62
62
|
"https://qr.tapni.com",
|
|
63
63
|
"https://designer.tapni.com",
|
|
64
64
|
"https://designer-dev.tapni.com",
|
|
65
|
+
"http://localhost:8082",
|
|
66
|
+
"http://localhost:7777",
|
|
67
|
+
"http://localhost:8086",
|
|
68
|
+
"https://localhost:8085",
|
|
69
|
+
"http://localhost:8085"
|
|
65
70
|
],
|
|
66
71
|
},
|
|
67
72
|
mutations: {
|
|
@@ -279,6 +284,7 @@ export default {
|
|
|
279
284
|
// Set new access token
|
|
280
285
|
if (response && response.data) {
|
|
281
286
|
commit('setToken', response.data.token);
|
|
287
|
+
EventBus.$emit("ssoEvent", { name: "setStorage", data: state.$storex });
|
|
282
288
|
}
|
|
283
289
|
state.refreshing = false;
|
|
284
290
|
},
|
|
@@ -286,7 +292,7 @@ export default {
|
|
|
286
292
|
const [err, response] = await to(AuthService.login(data));
|
|
287
293
|
if (err) return dispatch('errorHandler', err);
|
|
288
294
|
if (response.data.success) {
|
|
289
|
-
if (state.display === 'npm'
|
|
295
|
+
if (state.display === 'npm') {
|
|
290
296
|
dispatch('loginSetup', { ...response, isModal: data.isModal });
|
|
291
297
|
await dispatch('getLoggedInAccounts');
|
|
292
298
|
}
|