jplan-pack 0.5.77 → 0.5.79
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/jplan-pack.es.js
CHANGED
@@ -14777,7 +14777,7 @@ const cd = process.env.JPLAN_WEBAPP__APP_PROXY_TENANT_NAME ?? "", X1 = process.e
|
|
14777
14777
|
clientId: X1,
|
14778
14778
|
authority: `https://${cd}.b2clogin.com/${cd}.onmicrosoft.com/${Z1}`,
|
14779
14779
|
knownAuthorities: [`${cd}.b2clogin.com`],
|
14780
|
-
redirectUri:
|
14780
|
+
redirectUri: eD
|
14781
14781
|
},
|
14782
14782
|
cache: {
|
14783
14783
|
cacheLocation: "localStorage",
|
@@ -14822,7 +14822,7 @@ function _C() {
|
|
14822
14822
|
setJToken: r
|
14823
14823
|
};
|
14824
14824
|
}
|
14825
|
-
const nD = () => process.env.JPLAN_WEBAPP__URL_AUTH || "http://localhost:
|
14825
|
+
const nD = () => process.env.JPLAN_WEBAPP__URL_AUTH || "http://localhost:5173/jplan-auth-authenticator", jr = se(null);
|
14826
14826
|
function CC() {
|
14827
14827
|
const { setJToken: r } = _C(), e = Qt(() => !!jr.value), t = Qt(() => jr.value);
|
14828
14828
|
async function n() {
|
@@ -14831,6 +14831,7 @@ function CC() {
|
|
14831
14831
|
const o = async () => new Promise((u, h) => {
|
14832
14832
|
try {
|
14833
14833
|
localStorage.clear();
|
14834
|
+
debugger;
|
14834
14835
|
const f = window.open(nD());
|
14835
14836
|
if (!f) {
|
14836
14837
|
console.error("Falha ao abrir a janela de autenticação"), h("Falha ao abrir a janela de autenticação");
|
@@ -23705,7 +23706,7 @@ const NH = /* @__PURE__ */ jc(OH, [["render", MH], ["__scopeId", "data-v-71303a6
|
|
23705
23706
|
newestOnTop: !0
|
23706
23707
|
}, { isAuthenticated: Ev, handleRedirect: FH } = CC(), BH = qC();
|
23707
23708
|
function mF(r) {
|
23708
|
-
r.beforeEach(async (e, t, n) => {
|
23709
|
+
r.addRoute(authRoute), console.log(r.getRoutes()), console.log(authRoute), r.beforeEach(async (e, t, n) => {
|
23709
23710
|
function o(c) {
|
23710
23711
|
return c.matched.some((u) => u.meta.requiresAuth);
|
23711
23712
|
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
2
|
+
export default _default;
|