propro-utils 1.7.12 → 1.7.14

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.14",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -161,12 +161,12 @@ 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
166
  ...config,
167
- domain: 'https://propro.so'
167
+ domain: undefined
168
168
  });
169
- console.log('Setting cookie 2:', {response})
169
+ // console.log('Setting cookie 2:', {response})
170
170
  } catch (error) {
171
171
  console.error('Error setting cookie: Object.entries', {
172
172
  error: error.message,