enzostvs HF staff commited on
Commit
99e890b
β€’
1 Parent(s): 092cb24

wip signin

Browse files
Files changed (1) hide show
  1. src/lib/stores/use-user.ts +2 -2
src/lib/stores/use-user.ts CHANGED
@@ -6,8 +6,8 @@ export const userStore = writable<any>(null);
6
 
7
  export const openWindowLogin = async () => {
8
  const response = await fetch(`/api/auth/login`);
9
- const { ok, redirect } = await response.json();
10
- if (ok && redirect) {
11
  window.open(redirect, "_blank");
12
  }
13
  };
 
6
 
7
  export const openWindowLogin = async () => {
8
  const response = await fetch(`/api/auth/login`);
9
+ const { redirect } = await response.json();
10
+ if (redirect) {
11
  window.open(redirect, "_blank");
12
  }
13
  };