bt-core-app 1.4.549 → 1.4.551

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.
@@ -8830,9 +8830,14 @@ function kx(e) {
8830
8830
  function m(k) {
8831
8831
  l.value = void 0, b(), k != null && e.router != null && e.router.currentRoute.value.path != k && e.router.push({ path: k });
8832
8832
  }
8833
- function g(k) {
8834
- const S = et(l);
8835
- w() || !S.isLoggedIn ? (m(), window.location.href = f(k)) : !el(k) && e.router != null && e.router.push({ path: k });
8833
+ function g(k, S) {
8834
+ const M = et(l);
8835
+ if (w() || !M.isLoggedIn) {
8836
+ m();
8837
+ let I = f(k);
8838
+ S != null && (I.includes("?") || (I = I + "?"), I.includes("&") && (I = I + "&"), I = I + new URLSearchParams(S).toString()), window.location.href = I;
8839
+ } else
8840
+ !el(k) && e.router != null && e.router.push({ path: k });
8836
8841
  }
8837
8842
  async function y() {
8838
8843
  return e.testToken ?? (e.testToken = async () => {
package/dist/index.d.ts CHANGED
@@ -160,7 +160,7 @@ export declare interface BTAuth {
160
160
  getAuthorizeUrl: (redirectPath?: string) => string;
161
161
  getToken: (code?: string, state?: string) => Promise<void>;
162
162
  isLoggedIn: ComputedRef<boolean>;
163
- login: (redirectPath?: string) => void;
163
+ login: (redirectPath?: string, query?: any) => void;
164
164
  logout: (navNameRedirect?: string) => void;
165
165
  resetAuthState: () => void;
166
166
  setAuth: (jwtToken?: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.549",
3
+ "version": "1.4.551",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {