propro-utils 1.5.25 → 1.5.27
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 +3 -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
|
-
|
|
107
|
+
`/api/v1/auth/send-magic-link?clientId=${this.options.clientId}&redirectUri=${this.options.redirectUri}`
|
|
108
108
|
);
|
|
109
109
|
res.status(response.status).json(response.data);
|
|
110
110
|
} catch (error) {
|
|
@@ -334,7 +334,8 @@ class AuthMiddleware {
|
|
|
334
334
|
pathRequiresAccessToken = path => {
|
|
335
335
|
return (
|
|
336
336
|
!path.includes('/api/v1/auth/login') &&
|
|
337
|
-
!path.includes('/api/v1/auth/signup')
|
|
337
|
+
!path.includes('/api/v1/auth/signup') &&
|
|
338
|
+
!path.includes('/api/v1/send-magic-link')
|
|
338
339
|
);
|
|
339
340
|
};
|
|
340
341
|
|