@tapni/auth 1.0.67 → 1.0.68
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 +8 -8
- package/dist/{Apps-CwN4b-EY.js → Apps-DrIjXIu-.js} +1 -1
- package/dist/{CustomApp-B3pFA11P.js → CustomApp-CH94gxCf.js} +1 -1
- package/dist/{QR-nYopYeWv.js → QR-DudSvdIw.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +2 -2
- package/dist/{install-Bdvxvbg8.js → install-CZLWg5gY.js} +11 -2
- package/package.json +2 -2
- package/src/App.vue +11 -3
- package/src/store/auth.js +5 -0
|
@@ -6846,7 +6846,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
6846
6846
|
app_region: "Região",
|
|
6847
6847
|
app_region_p: "Selecione sua região para experiência de faturamento e suporte personalizada"
|
|
6848
6848
|
}
|
|
6849
|
-
}, Mo = () => Promise.resolve().then(() => Ea), Aa = () => Promise.resolve().then(() => Nc), Ra = () => Promise.resolve().then(() => Ul), Pa = () => Promise.resolve().then(() => Wp), Ma = () => Promise.resolve().then(() => ul), Na = () => Promise.resolve().then(() => Xl), La = () => Promise.resolve().then(() => nh), Oa = () => import("./QR-
|
|
6849
|
+
}, Mo = () => Promise.resolve().then(() => Ea), Aa = () => Promise.resolve().then(() => Nc), Ra = () => Promise.resolve().then(() => Ul), Pa = () => Promise.resolve().then(() => Wp), Ma = () => Promise.resolve().then(() => ul), Na = () => Promise.resolve().then(() => Xl), La = () => Promise.resolve().then(() => nh), Oa = () => import("./QR-DudSvdIw.js"), za = () => Promise.resolve().then(() => Xu), xa = () => import("./Apps-DrIjXIu-.js"), Ua = () => Promise.resolve().then(() => Od), Ba = () => import("./CustomApp-CH94gxCf.js"), Da = () => Promise.resolve().then(() => wp), ja = [
|
|
6850
6850
|
{
|
|
6851
6851
|
path: "/welcome",
|
|
6852
6852
|
name: "AuthWelcome",
|
|
@@ -7008,6 +7008,9 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
7008
7008
|
},
|
|
7009
7009
|
setApiRoot(n, e) {
|
|
7010
7010
|
n.apiRoot = e;
|
|
7011
|
+
},
|
|
7012
|
+
addAllowedOrigin(n, e) {
|
|
7013
|
+
n.allowedOriginsAuth.includes(e) || n.allowedOriginsAuth.push(e);
|
|
7011
7014
|
}
|
|
7012
7015
|
},
|
|
7013
7016
|
actions: {
|
|
@@ -20124,7 +20127,13 @@ const To = /* @__PURE__ */ Yt(Jp, [["render", th]]), nh = /* @__PURE__ */ Object
|
|
|
20124
20127
|
}
|
|
20125
20128
|
},
|
|
20126
20129
|
async mounted() {
|
|
20127
|
-
this.checkAndClearStorage(), this.applyBgStyle(), this.setView(this.viewProp), this.updateMetadata(), te.$on("ssoEvent", this.ssoOutgoingEvent), te.$on("ssoLogout", (n) => this.logout(n)), te.$on("getLoggedInAccounts", () => this.getLoggedInAccounts()), te.$on("refreshTokenAction", (n) => this.refreshTokenAction({ ...n, storage: this.$storex })), te.$on("switchAccount", (n) => this.switchAccount(n)), te.$on("setToken", (n) => this.setToken(n)), te.$on("setStorageItem", (n) => this.setStorageItem(n)), this.isNative && this.$
|
|
20130
|
+
this.checkAndClearStorage(), this.applyBgStyle(), this.setView(this.viewProp), this.updateMetadata(), te.$on("ssoEvent", this.ssoOutgoingEvent), te.$on("ssoLogout", (n) => this.logout(n)), te.$on("getLoggedInAccounts", () => this.getLoggedInAccounts()), te.$on("refreshTokenAction", (n) => this.refreshTokenAction({ ...n, storage: this.$storex })), te.$on("switchAccount", (n) => this.switchAccount(n)), te.$on("setToken", (n) => this.setToken(n)), te.$on("setStorageItem", (n) => this.setStorageItem(n)), this.isNative && this.$nextTick(() => {
|
|
20131
|
+
try {
|
|
20132
|
+
this.$store && this.$store.state && this.$store.state.auth && this.$store.commit("auth/addAllowedOrigin", "capacitor://localhost");
|
|
20133
|
+
} catch (n) {
|
|
20134
|
+
console.error("Failed to add capacitor origin to allowed origins:", n);
|
|
20135
|
+
}
|
|
20136
|
+
});
|
|
20128
20137
|
},
|
|
20129
20138
|
methods: {
|
|
20130
20139
|
checkAndClearStorage() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapni/auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.68",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/TapniAuth.umd.js",
|
|
6
6
|
"module": "./dist/TapniAuth.es.js",
|
|
@@ -65,4 +65,4 @@
|
|
|
65
65
|
"vite": "^5.4.11",
|
|
66
66
|
"vite-plugin-node-polyfills": "^0.22.0"
|
|
67
67
|
}
|
|
68
|
-
}
|
|
68
|
+
}
|
package/src/App.vue
CHANGED
|
@@ -143,9 +143,17 @@ export default {
|
|
|
143
143
|
UtilService.compareLangKeys();
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
if (this.isNative) {
|
|
147
|
+
this.$nextTick(() => {
|
|
148
|
+
try {
|
|
149
|
+
if (this.$store && this.$store.state && this.$store.state.auth) {
|
|
150
|
+
this.$store.commit('auth/addAllowedOrigin', 'capacitor://localhost');
|
|
151
|
+
}
|
|
152
|
+
} catch (error) {
|
|
153
|
+
console.error('Failed to add capacitor origin to allowed origins:', error);
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
149
157
|
},
|
|
150
158
|
methods: {
|
|
151
159
|
checkAndClearStorage() {
|
package/src/store/auth.js
CHANGED
|
@@ -107,6 +107,11 @@ export default {
|
|
|
107
107
|
},
|
|
108
108
|
setApiRoot(state, apiRoot) {
|
|
109
109
|
state.apiRoot = apiRoot;
|
|
110
|
+
},
|
|
111
|
+
addAllowedOrigin(state, origin) {
|
|
112
|
+
if (!state.allowedOriginsAuth.includes(origin)) {
|
|
113
|
+
state.allowedOriginsAuth.push(origin);
|
|
114
|
+
}
|
|
110
115
|
}
|
|
111
116
|
},
|
|
112
117
|
actions: {
|