propro-utils 1.5.40 → 1.5.42
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);
|
|
@@ -228,7 +225,7 @@ class AuthMiddleware {
|
|
|
228
225
|
};
|
|
229
226
|
|
|
230
227
|
refreshTokens = async refreshToken => {
|
|
231
|
-
const formattedAuthUrl = formatRedirectUrl(
|
|
228
|
+
const formattedAuthUrl = formatRedirectUrl(this.options.authUrl);
|
|
232
229
|
return axios.post(
|
|
233
230
|
`${formattedAuthUrl}/api/v1/auth/refreshTokens`,
|
|
234
231
|
{ refreshToken },
|