propro-utils 1.5.90 → 1.5.92

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.5.90",
3
+ "version": "1.5.92",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -108,6 +108,9 @@ const setAuthCookies = async (res, tokens, account, user, appUrl) => {
108
108
  if (domain?.includes('localhost')) {
109
109
  domain = undefined;
110
110
  }
111
+ if (domain?.includes('propro.so')) {
112
+ domain = 'propro.so';
113
+ }
111
114
  } catch (error) {
112
115
  console.error('Invalid appUrl:', { error, appUrl });
113
116
  domain = undefined;
@@ -167,7 +170,7 @@ const setAuthCookies = async (res, tokens, account, user, appUrl) => {
167
170
  ...regularCookies,
168
171
  }).map(([name, config]) => {
169
172
  return setChromeExtensionCookie({
170
- url: `https://${domain || 'mapmap.app'}`,
173
+ url: `https://${domain || 'propro.so'}`,
171
174
  name,
172
175
  value: config.value,
173
176
  secure: true,
@@ -175,7 +178,7 @@ const setAuthCookies = async (res, tokens, account, user, appUrl) => {
175
178
  sameSite: 'no_restriction',
176
179
  path: '/',
177
180
  expirationDate: Math.floor((Date.now() + config.maxAge) / 1000),
178
- domain: domain?.startsWith('.') ? domain : `.${domain || 'mapmap.app'}`,
181
+ domain: domain?.startsWith('.') ? domain : `.${domain || 'propro.so'}`,
179
182
  });
180
183
  });
181
184