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; + } } /** ********************************************** */