@niledatabase/server 3.0.0-alpha.11 → 3.0.0-alpha.12
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.
|
@@ -3090,7 +3090,7 @@ var appRoutes = function appRoutes(prefix) {
|
|
|
3090
3090
|
* a helper function to log in server side.
|
|
3091
3091
|
*/
|
|
3092
3092
|
function serverAuth(config, handlers) {
|
|
3093
|
-
var _Logger = Logger(config, '[
|
|
3093
|
+
var _Logger = Logger(config, '[server side login]'),
|
|
3094
3094
|
info = _Logger.info;
|
|
3095
3095
|
return /*#__PURE__*/function () {
|
|
3096
3096
|
var _login = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
@@ -3184,8 +3184,8 @@ function serverAuth(config, handlers) {
|
|
|
3184
3184
|
}
|
|
3185
3185
|
throw new Error('authentication failed');
|
|
3186
3186
|
case 41:
|
|
3187
|
-
info('Server login successful');
|
|
3188
3187
|
_ref3 = (_exec = /(nile\.session-token=.+?);/.exec(authCookie)) != null ? _exec : [], token = _ref3[1];
|
|
3188
|
+
info('Server login successful', authCookie, csrfCookie);
|
|
3189
3189
|
return _context.abrupt("return", new Headers({
|
|
3190
3190
|
cookie: [token, csrfCookie].join('; ')
|
|
3191
3191
|
}));
|