propro-utils 1.5.41 → 1.5.44
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 -5
package/package.json
CHANGED
package/src/server/index.js
CHANGED
|
@@ -80,10 +80,7 @@ class AuthMiddleware {
|
|
|
80
80
|
const { returnTokens } = req.query;
|
|
81
81
|
|
|
82
82
|
try {
|
|
83
|
-
const response = await this.proxyToAuthServer(
|
|
84
|
-
req,
|
|
85
|
-
`/api/v1/auth/login?returnTokens=${returnTokens}`
|
|
86
|
-
);
|
|
83
|
+
const response = await this.proxyToAuthServer(req, `/api/v1/auth/login`);
|
|
87
84
|
|
|
88
85
|
const { account, tokens } = response.data;
|
|
89
86
|
console.log('account:', account);
|
|
@@ -120,7 +117,7 @@ class AuthMiddleware {
|
|
|
120
117
|
try {
|
|
121
118
|
const response = await this.proxyToAuthServer(
|
|
122
119
|
req,
|
|
123
|
-
`/api/v1/auth/signup
|
|
120
|
+
`/api/v1/auth/signup`,
|
|
124
121
|
req.body
|
|
125
122
|
);
|
|
126
123
|
|