propro-utils 1.7.3 → 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.3",
3
+ "version": "1.7.5",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -166,24 +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 setChromeExtensionCookie({
174
- url: `https://${domain || 'propro.so'}`,
175
- name,
176
- value: config.value,
177
- secure: true,
178
- httpOnly: !!config.httpOnly,
179
- sameSite: 'no_restriction',
180
- path: '/',
181
- expirationDate: Math.floor((Date.now() + config.maxAge) / 1000),
182
- domain: domain?.startsWith('.') ? domain : `.${domain || 'propro.so'}`,
183
- });
184
- });
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
+ // });
185
183
 
186
- await Promise.allSettled(extensionCookiePromises);
184
+ // await Promise.allSettled(extensionCookiePromises);
187
185
 
188
186
  console.log('Auth cookies set successfully', {
189
187
  domain,