propro-utils 1.7.12 → 1.7.13

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.12",
3
+ "version": "1.7.13",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -161,12 +161,11 @@ const setAuthCookies = async (res, tokens, account, user, appUrl) => {
161
161
  ([name, config]) => {
162
162
  try{
163
163
  console.log(domain,'Setting cookie 1:', {name, value: config.value})
164
- const response = res.cookie(name, config.value, {
164
+ res.cookie(name, config.value, {
165
165
  ...commonAttributes,
166
- ...config,
167
- domain: 'https://propro.so'
166
+ ...config
168
167
  });
169
- console.log('Setting cookie 2:', {response})
168
+ // console.log('Setting cookie 2:', {response})
170
169
  } catch (error) {
171
170
  console.error('Error setting cookie: Object.entries', {
172
171
  error: error.message,