Spaces:
Running
Running
wip signin
Browse files
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");
|