Skip to content

Commit

Permalink
Change cookie name and default expire time
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Aug 9, 2024
1 parent 4eb0bc4 commit ab77895
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/UserSettings/tests/UserSettings.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import UserSettingsGetUser, {
UserSettingsIds,
} from "components/UserSettings/UserSettings";
import { newUser } from "types/user";
import { useAppSelector } from "rootRedux/hooks";

const mockGetAvatar = jest.fn();
const mockGetCurrentUser = jest.fn();
Expand Down
4 changes: 4 additions & 0 deletions src/cookies/useCookieConsent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export default function useCookieConsent(): void {
/* Use defaults */
},
},
cookie: {
expiresAfterDays: 365,
name: "cookie_consent",
},
guiOptions: {
consentModal: { layout: "bar inline" },
},
Expand Down

0 comments on commit ab77895

Please sign in to comment.