From 607ec62bdc52efafa8b075f5000d6285a5892728 Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Sat, 15 Jun 2024 06:36:01 +0100 Subject: [PATCH] Testing global auth cookies --- website/src/stores/authStore.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", () => {