propro-utils 1.4.53 → 1.4.54
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/index.js +1 -0
- package/src/server/index.js +2 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
package/src/server/index.js
CHANGED
|
@@ -100,7 +100,7 @@ function proproAuthMiddleware(options = {}, userSchema) {
|
|
|
100
100
|
|
|
101
101
|
const user = await checkIfUserExists(userSchema, account.accountId);
|
|
102
102
|
|
|
103
|
-
setAuthCookies(res, { access, refresh }, account, user);
|
|
103
|
+
setAuthCookies(res, { access, refresh }, account, user, appUrl);
|
|
104
104
|
|
|
105
105
|
return res
|
|
106
106
|
.status(200)
|
|
@@ -125,7 +125,7 @@ function proproAuthMiddleware(options = {}, userSchema) {
|
|
|
125
125
|
|
|
126
126
|
setAuthCookies(res, tokens, account, user, appUrl);
|
|
127
127
|
|
|
128
|
-
const urlToRedirect = formatRedirectUrl(
|
|
128
|
+
const urlToRedirect = formatRedirectUrl(appUrl);
|
|
129
129
|
|
|
130
130
|
return res.redirect(urlToRedirect);
|
|
131
131
|
}
|