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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-utils",
3
- "version": "1.5.28",
3
+ "version": "1.5.30",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -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?clientId=${this.options.clientId}&redirectUri=${this.options.redirectUri}`
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}&clientId=${this.options.clientId}&redirectUri=${this.options.redirectUri}`;
373
+ formattedAuthUrl = `${formattedAuthUrl}?clientId=${this.options.clientId}&redirectUri=${this.options.redirectUri}`;
374
374
  }
375
375
 
376
376
  const data = req.file ? formData : req.body;