propro-utils 1.4.40 → 1.4.41
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 +0 -8
package/package.json
CHANGED
package/src/server/index.js
CHANGED
|
@@ -106,8 +106,6 @@ function proproAuthMiddleware(options = {}, userSchema) {
|
|
|
106
106
|
|
|
107
107
|
const formatedAuthUrl = formatRedirectUrl(authUrl);
|
|
108
108
|
|
|
109
|
-
console.log('making a refreshToken Request: ', refreshToken);
|
|
110
|
-
|
|
111
109
|
let response;
|
|
112
110
|
|
|
113
111
|
try {
|
|
@@ -134,16 +132,10 @@ function proproAuthMiddleware(options = {}, userSchema) {
|
|
|
134
132
|
.json({ error: 'Invalid or expired refresh token' });
|
|
135
133
|
}
|
|
136
134
|
|
|
137
|
-
console.log('Checking for existing user: ', account);
|
|
138
|
-
|
|
139
135
|
const user = await checkIfUserExists(userSchema, account.accountId);
|
|
140
136
|
|
|
141
|
-
console.log('Setting Cookies: ', user, account);
|
|
142
|
-
|
|
143
137
|
setAuthCookies(res, { access, refresh }, account, user);
|
|
144
138
|
|
|
145
|
-
console.log('Cookies Set: ');
|
|
146
|
-
|
|
147
139
|
return res
|
|
148
140
|
.status(200)
|
|
149
141
|
.json({ message: 'Token refreshed successfully' });
|