From dbd99b2d4d4020733cc3defb3795df6a996df8cb Mon Sep 17 00:00:00 2001 From: Dom Date: Sun, 16 Jun 2024 10:28:56 +0100 Subject: [PATCH] fix: disable "secure" mode on auth cookie (#83) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In Firefox a warning is displayed that states: Cookie “pb_auth” has been rejected because a non-HTTPS cookie can't be set as “secure”. This warning is emitted from authStore.onChange callback. The server-side cookie response contains the attribute "secure: false" which avoids this problem, but this was missing from the client side hook. Co-authored-by: Flomp