mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
The shouldShowConsent function in the shared package had the correct logic for checking analyticsConsentRemindAt, but the AuthGuard never used it. The inline check only redirected to the consent page when both analyticsEnabled and analyticsConsentShownAt were null, which is never true after "remind later" since shownAt gets set. - Destructure analyticsConsentRemindAt from useAuth session - Hydrate remindAt into the analytics store instead of hardcoding null - Replace inline redirect check with shouldShowConsent from shared pkg - Read analyticsConfig from the store inside AuthGuard for serverEnabled