propro-utils 1.7.21 → 1.7.22

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,8 +1,9 @@
1
1
  {
2
2
  "name": "propro-utils",
3
- "version": "1.7.21",
3
+ "version": "1.7.22",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
+ "private": false,
6
7
  "scripts": {
7
8
  "test": "node --experimental-vm-modules node_modules/.bin/jest",
8
9
  "test:watch": "node --experimental-vm-modules ./node_modules/.bin/jest --coverage --verbose --watchAll",
@@ -166,7 +166,7 @@ class AuthMiddleware {
166
166
  throw new Error('User not found');
167
167
  }
168
168
 
169
- setAuthCookies(res, tokens, account, user, this.options.appUrl);
169
+ await setAuthCookies(res, tokens, account, user, this.options.appUrl);
170
170
 
171
171
  res.redirect(formatRedirectUrl(this.options.appUrl));
172
172
  } catch (error) {