propro-utils 1.5.28 → 1.5.30
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
|
@@ -104,7 +104,7 @@ class AuthMiddleware {
|
|
|
104
104
|
try {
|
|
105
105
|
const response = await this.proxyToAuthServer(
|
|
106
106
|
req,
|
|
107
|
-
`/api/v1/auth/send-magic-link
|
|
107
|
+
`/api/v1/auth/send-magic-link`
|
|
108
108
|
);
|
|
109
109
|
res.status(response.status).json(response.data);
|
|
110
110
|
} catch (error) {
|
|
@@ -370,7 +370,7 @@ class AuthMiddleware {
|
|
|
370
370
|
let formattedAuthUrl = formatRedirectUrl(this.options.authUrl) + path;
|
|
371
371
|
|
|
372
372
|
if (!accessToken) {
|
|
373
|
-
formattedAuthUrl = `${formattedAuthUrl}
|
|
373
|
+
formattedAuthUrl = `${formattedAuthUrl}?clientId=${this.options.clientId}&redirectUri=${this.options.redirectUri}`;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
const data = req.file ? formData : req.body;
|