enzostvs HF Staff commited on
Commit
b8c7abd
·
1 Parent(s): cf40eb5

wip signin

Browse files
Files changed (1) hide show
  1. src/lib/stores/use-user.ts +10 -9
src/lib/stores/use-user.ts CHANGED
@@ -5,15 +5,16 @@ import cookies from "js-cookie";
5
  export const userStore = writable<any>(null);
6
 
7
  export const openWindowLogin = async () => {
8
- if (window.location.pathname !== process.env.SPACE_HOST) {
9
- window.location.href = `https://${process.env.SPACE_HOST}`;
10
- return
11
- }
12
- return window.open(
13
- "/api/auth/login",
14
- "Login to LoRAs Studio",
15
- "menubar=no,width=500,height=777,location=no,resizable=no,scrollbars=yes,status=no"
16
- );
 
17
  };
18
 
19
  export const loginFromCode = async (code: string) => {
 
5
  export const userStore = writable<any>(null);
6
 
7
  export const openWindowLogin = async () => {
8
+ console.log(process.env.SPACE_HOST)
9
+ // if (window.location.pathname !== process.env.SPACE_HOST) {
10
+ // window.location.href = `https://${process.env.SPACE_HOST}`;
11
+ // return
12
+ // }
13
+ // return window.open(
14
+ // "/api/auth/login",
15
+ // "Login to LoRAs Studio",
16
+ // "menubar=no,width=500,height=777,location=no,resizable=no,scrollbars=yes,status=no"
17
+ // );
18
  };
19
 
20
  export const loginFromCode = async (code: string) => {