zitejs 0.9.79 → 0.9.80

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.
@@ -11,6 +11,8 @@ const authClient = (0, react_1.createAuthClient)({
11
11
  });
12
12
  exports.useSession = authClient.useSession, exports.signIn = authClient.signIn, exports.signOut = authClient.signOut, exports.signUp = authClient.signUp;
13
13
  function loginWithRedirect(opts) {
14
+ if (window.location.pathname.startsWith('/auth/'))
15
+ return;
14
16
  const params = new URLSearchParams();
15
17
  if (opts?.redirectUrl)
16
18
  params.set('redirectUrl', opts.redirectUrl);
@@ -6,6 +6,8 @@ const authClient = createAuthClient({
6
6
  });
7
7
  export const { useSession, signIn, signOut, signUp } = authClient;
8
8
  export function loginWithRedirect(opts) {
9
+ if (window.location.pathname.startsWith('/auth/'))
10
+ return;
9
11
  const params = new URLSearchParams();
10
12
  if (opts?.redirectUrl)
11
13
  params.set('redirectUrl', opts.redirectUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zitejs",
3
- "version": "0.9.79",
3
+ "version": "0.9.80",
4
4
  "description": "The Zite framework — build apps on Zite Database",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",