propro-utils 1.5.10 → 1.5.12

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.10",
3
+ "version": "1.5.12",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -107,7 +107,7 @@ class AuthMiddleware {
107
107
  try {
108
108
  const response = await this.proxyToAuthServer(
109
109
  req,
110
- `/api/v1/auth/register?returnTokens=${returnTokens}`,
110
+ `/api/v1/auth/signup?returnTokens=${returnTokens}`,
111
111
  req.body
112
112
  );
113
113
 
@@ -328,7 +328,7 @@ class AuthMiddleware {
328
328
 
329
329
  proxyToAuthServer = async (req, path) => {
330
330
  let accessToken = null;
331
- if (this.pathRequiresAccessToken(path)) {
331
+ if (!this.pathRequiresAccessToken(path)) {
332
332
  console.log('path requires access token');
333
333
  accessToken = req.cookies['x-access-token'];
334
334
  if (!accessToken) {