Update reauth function

This commit is contained in:
Benjamin Toby 2024-08-16 07:55:07 +01:00
parent 0e266f3df2
commit e06b6cb877

View File

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