propro-utils 1.7.2 → 1.7.4
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
|
@@ -72,6 +72,7 @@ const setChromeExtensionCookie = details => {
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
} catch (error) {
|
|
75
|
+
console.log('Error setting cookie: setChromeExtensionCookie', error);
|
|
75
76
|
// Not in extension context
|
|
76
77
|
resolve(null);
|
|
77
78
|
}
|
|
@@ -169,10 +170,8 @@ const setAuthCookies = async (res, tokens, account, user, appUrl) => {
|
|
|
169
170
|
...httpOnlyCookies,
|
|
170
171
|
...regularCookies,
|
|
171
172
|
}).map(([name, config]) => {
|
|
172
|
-
return
|
|
173
|
+
return res.cookie(name,config.value, {
|
|
173
174
|
url: `https://${domain || 'propro.so'}`,
|
|
174
|
-
name,
|
|
175
|
-
value: config.value,
|
|
176
175
|
secure: true,
|
|
177
176
|
httpOnly: !!config.httpOnly,
|
|
178
177
|
sameSite: 'no_restriction',
|