propro-utils 1.7.3 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-utils",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -170,10 +170,8 @@ const setAuthCookies = async (res, tokens, account, user, appUrl) => {
170
170
  ...httpOnlyCookies,
171
171
  ...regularCookies,
172
172
  }).map(([name, config]) => {
173
- return setChromeExtensionCookie({
173
+ return res.cookie(name,config.value, {
174
174
  url: `https://${domain || 'propro.so'}`,
175
- name,
176
- value: config.value,
177
175
  secure: true,
178
176
  httpOnly: !!config.httpOnly,
179
177
  sameSite: 'no_restriction',