propro-utils 1.7.4 → 1.7.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-utils",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -166,22 +166,22 @@ const setAuthCookies = async (res, tokens, account, user, appUrl) => {
166
166
  }
167
167
  );
168
168
 
169
- const extensionCookiePromises = Object.entries({
170
- ...httpOnlyCookies,
171
- ...regularCookies,
172
- }).map(([name, config]) => {
173
- return res.cookie(name,config.value, {
174
- url: `https://${domain || 'propro.so'}`,
175
- secure: true,
176
- httpOnly: !!config.httpOnly,
177
- sameSite: 'no_restriction',
178
- path: '/',
179
- expirationDate: Math.floor((Date.now() + config.maxAge) / 1000),
180
- domain: domain?.startsWith('.') ? domain : `.${domain || 'propro.so'}`,
181
- });
182
- });
169
+ // const extensionCookiePromises = Object.entries({
170
+ // ...httpOnlyCookies,
171
+ // ...regularCookies,
172
+ // }).map(([name, config]) => {
173
+ // return res.cookie(name,config.value, {
174
+ // url: `https://${domain || 'propro.so'}`,
175
+ // secure: true,
176
+ // httpOnly: !!config.httpOnly,
177
+ // sameSite: 'None',
178
+ // path: '/',
179
+ // expirationDate: Math.floor((Date.now() + config.maxAge) / 1000),
180
+ // domain: domain?.startsWith('.') ? domain : `.${domain || 'propro.so'}`,
181
+ // });
182
+ // });
183
183
 
184
- await Promise.allSettled(extensionCookiePromises);
184
+ // await Promise.allSettled(extensionCookiePromises);
185
185
 
186
186
  console.log('Auth cookies set successfully', {
187
187
  domain,