Skip to content

Commit

Permalink
Testing global auth cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Jun 15, 2024
1 parent 02b487a commit 607ec62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/src/stores/authStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit 607ec62

Please sign in to comment.