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 +1 -1
- package/src/server/index.js +2 -2
package/package.json
CHANGED
package/src/server/index.js
CHANGED
|
@@ -107,7 +107,7 @@ class AuthMiddleware {
|
|
|
107
107
|
try {
|
|
108
108
|
const response = await this.proxyToAuthServer(
|
|
109
109
|
req,
|
|
110
|
-
`/api/v1/auth/
|
|
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) {
|