Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
wip signin
Browse files- 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 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
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) => {
|