From e06b6cb8770ac533eb2fc75770ecb24fe47a4249 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Fri, 16 Aug 2024 07:55:07 +0100 Subject: [PATCH] Update reauth function --- users/reauth-user.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/users/reauth-user.js b/users/reauth-user.js index 4080f4f..032f47d 100644 --- a/users/reauth-user.js +++ b/users/reauth-user.js @@ -210,6 +210,10 @@ async function reauthUser({ `${csrfName}=${httpResponse.payload.csrf_k};samesite=strict;path=/;HttpOnly=true`, `dsqluid=${userId};samesite=strict;path=/;HttpOnly=true`, ]); + + if (token) { + httpResponse.token = encryptedPayload; + } } /** ********************************************** */