From 7120a76589bc9a48ad82be58e04b85db1bffa7c9 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 18 Nov 2024 14:01:11 +0100 Subject: [PATCH] why is my secret not comming through??? --- src/components/colorschemepicker.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/colorschemepicker.tsx b/src/components/colorschemepicker.tsx index a386251..cbef47a 100644 --- a/src/components/colorschemepicker.tsx +++ b/src/components/colorschemepicker.tsx @@ -20,6 +20,8 @@ interface ColorSchemePickerProps { const getSession = async () => { 'use server'; + console.log(process.env.SESSION_SECRET); + return useSession<{ colorScheme: ColorSchemeKey }>({ password: process.env.SESSION_SECRET!, });