lora-studio / src /lib /stores /use-user.ts
enzostvs's picture
enzostvs HF staff
refacto whole models system
8fce765
raw
history blame
279 Bytes
import { writable } from "svelte/store";
// import cookies from "js-cookie";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const userStore = writable<any>(null);
export const openWindowLogin = async () => {
window.open("/api/auth/login", "_blank");
};