propro-utils 1.7.8 → 1.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -160,10 +160,12 @@ const setAuthCookies = async (res, tokens, account, user, appUrl) => {
|
|
|
160
160
|
Object.entries({ ...httpOnlyCookies, ...regularCookies }).forEach(
|
|
161
161
|
([name, config]) => {
|
|
162
162
|
try{
|
|
163
|
-
|
|
163
|
+
console.log('Setting cookie 1:', {name, value: config.value})
|
|
164
|
+
const response = res.cookie(name, config.value, {
|
|
164
165
|
...commonAttributes,
|
|
165
166
|
...config,
|
|
166
167
|
});
|
|
168
|
+
console.log('Setting cookie 2:', {response})
|
|
167
169
|
} catch (error) {
|
|
168
170
|
console.error('Error setting cookie: Object.entries', {
|
|
169
171
|
error: error.message,
|