propro-utils 1.4.30 → 1.4.31
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 +18 -0
package/package.json
CHANGED
package/src/server/index.js
CHANGED
|
@@ -128,7 +128,16 @@ function proproAuthMiddleware(options = {}, userSchema) {
|
|
|
128
128
|
redirectUri
|
|
129
129
|
);
|
|
130
130
|
|
|
131
|
+
console.log(
|
|
132
|
+
'tokens',
|
|
133
|
+
tokens,
|
|
134
|
+
'account',
|
|
135
|
+
account,
|
|
136
|
+
'redirectUrl',
|
|
137
|
+
redirectUrl
|
|
138
|
+
);
|
|
131
139
|
const user = await checkIfUserExists(userSchema, account.accountId);
|
|
140
|
+
console.log('user', user);
|
|
132
141
|
|
|
133
142
|
const currentDateTime = new Date();
|
|
134
143
|
|
|
@@ -151,6 +160,15 @@ function proproAuthMiddleware(options = {}, userSchema) {
|
|
|
151
160
|
maxAge: accessMaxAge,
|
|
152
161
|
});
|
|
153
162
|
|
|
163
|
+
console.log(
|
|
164
|
+
'user',
|
|
165
|
+
user,
|
|
166
|
+
'account',
|
|
167
|
+
account,
|
|
168
|
+
'redirectUrl',
|
|
169
|
+
redirectUrl
|
|
170
|
+
);
|
|
171
|
+
|
|
154
172
|
res.cookie('user', JSON.stringify(user), {
|
|
155
173
|
maxAge: accessMaxAge,
|
|
156
174
|
});
|