propro-utils 1.4.57 → 1.4.59
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 +26 -1
package/package.json
CHANGED
package/src/server/index.js
CHANGED
|
@@ -127,7 +127,32 @@ function proproAuthMiddleware(options = {}, userSchema) {
|
|
|
127
127
|
|
|
128
128
|
const urlToRedirect = formatRedirectUrl(redirectUrl);
|
|
129
129
|
|
|
130
|
-
console.log('Cookies set successfully', res.
|
|
130
|
+
console.log('Cookies set successfully', JSON.stringify(res.cookie));
|
|
131
|
+
const cookies = res.cookie;
|
|
132
|
+
console.log('Cookies set successfully', JSON.stringify(cookies));
|
|
133
|
+
console.log(
|
|
134
|
+
'Cookies set successfully',
|
|
135
|
+
JSON.stringify(cookies['user'])
|
|
136
|
+
);
|
|
137
|
+
console.log(
|
|
138
|
+
'Cookies set successfully',
|
|
139
|
+
JSON.stringify(cookies['account'])
|
|
140
|
+
);
|
|
141
|
+
console.log(
|
|
142
|
+
'Cookies set successfully',
|
|
143
|
+
JSON.stringify(cookies['x-refresh-token'])
|
|
144
|
+
);
|
|
145
|
+
console.log(
|
|
146
|
+
'Cookies set successfully',
|
|
147
|
+
JSON.stringify(cookies['x-access-token'])
|
|
148
|
+
);
|
|
149
|
+
console.log(
|
|
150
|
+
'Cookies set successfully',
|
|
151
|
+
JSON.stringify(cookies['has_account_token'])
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
// url
|
|
155
|
+
console.log('urlToRedirect', urlToRedirect);
|
|
131
156
|
|
|
132
157
|
return res.redirect(urlToRedirect);
|
|
133
158
|
}
|