propro-utils 1.4.70 → 1.4.71
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 +5 -7
package/package.json
CHANGED
package/src/server/index.js
CHANGED
|
@@ -132,14 +132,12 @@ function proproAuthMiddleware(options = {}, userSchema) {
|
|
|
132
132
|
|
|
133
133
|
const urlToRedirect = formatRedirectUrl(redirectUrl);
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
return res.redirect(urlToRedirect);
|
|
136
136
|
|
|
137
|
-
return res
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
redirectUrl: urlToRedirect,
|
|
142
|
-
});
|
|
137
|
+
// return res.status(200).json({
|
|
138
|
+
// message: 'Token received successfully',
|
|
139
|
+
// redirectUrl: urlToRedirect,
|
|
140
|
+
// });
|
|
143
141
|
}
|
|
144
142
|
} catch (error) {
|
|
145
143
|
console.log('Unauthorized: ', error.message);
|