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

wip signin

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