diff --git a/website/src/stores/authStore.ts b/website/src/stores/authStore.ts index 4a05de66..cc58831d 100644 --- a/website/src/stores/authStore.ts +++ b/website/src/stores/authStore.ts @@ -55,7 +55,8 @@ interface Client { const cookies = new Cookies(null, { path: "/", - expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 30) + expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 30), + domain: window.location.hostname.endsWith("slmn.gg") ? ".slmn.gg" : window.location.hostname }); export const useAuthStore = defineStore("auth", () => {