Manager._sensitiveResponse(res);
- ctx.session = Object.assign({}, ctx.session, {
+ ctx.session = {
+ ...ctx.session,
errorDescriptions: [],
- });
+ };
// Ingest and validate expected data, populating ctx.session.
await this._clientIdRequired(ctx);
Manager._sensitiveResponse(res);
// Ensure session exists, persisting any login session data.
- ctx.session = Object.assign({}, ctx.session);
+ ctx.session = {
+ ...ctx.session,
+ };
try {
// Recover the session established on initial auth request.
const oldSession = await this.mysteryBox.unpack(ctx.parsedBody['session']);
async _ingestPostAuthorizationRequest(ctx) {
const _scope = _fileScope('_ingestPostAuthorizationRequest');
- ctx.session = Object.assign({}, ctx.session, {
+ ctx.session = {
+ ...ctx.session,
errorDescriptions: [],
- });
+ };
if (!ctx.parsedBody) {
this.logger.debug(_scope, 'no body data', { ctx });
const _scope = _fileScope('postToken');
this.logger.debug(_scope, 'called', { ctx });
- ctx.session = Object.assign({}, ctx.session);
+ ctx.session = {
+ ...ctx.session,
+ };
await this.db.context(async (dbCtx) => {