projects
/
squeep-indie-auther
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update dependencies and devDependencies, update eslint config, address lint issues
[squeep-indie-auther]
/
src
/
manager.js
diff --git
a/src/manager.js
b/src/manager.js
index c79c7529670b8b83dba45f55ccb824716bd427c6..c7fe0df1b8d73f135e8a1d3f953f64b99df4e1cc 100644
(file)
--- a/
src/manager.js
+++ b/
src/manager.js
@@
-196,9
+196,10
@@
class Manager {
Manager._sensitiveResponse(res);
Manager._sensitiveResponse(res);
- ctx.session = Object.assign({}, ctx.session, {
+ ctx.session = {
+ ...ctx.session,
errorDescriptions: [],
errorDescriptions: [],
- }
)
;
+ };
// Ingest and validate expected data, populating ctx.session.
await this._clientIdRequired(ctx);
// Ingest and validate expected data, populating ctx.session.
await this._clientIdRequired(ctx);
@@
-633,7
+634,9
@@
class Manager {
Manager._sensitiveResponse(res);
// Ensure session exists, persisting any login session data.
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']);
try {
// Recover the session established on initial auth request.
const oldSession = await this.mysteryBox.unpack(ctx.parsedBody['session']);
@@
-789,9
+792,10
@@
class Manager {
async _ingestPostAuthorizationRequest(ctx) {
const _scope = _fileScope('_ingestPostAuthorizationRequest');
async _ingestPostAuthorizationRequest(ctx) {
const _scope = _fileScope('_ingestPostAuthorizationRequest');
- ctx.session = Object.assign({}, ctx.session, {
+ ctx.session = {
+ ...ctx.session,
errorDescriptions: [],
errorDescriptions: [],
- }
)
;
+ };
if (!ctx.parsedBody) {
this.logger.debug(_scope, 'no body data', { ctx });
if (!ctx.parsedBody) {
this.logger.debug(_scope, 'no body data', { ctx });
@@
-1397,7
+1401,9
@@
class Manager {
const _scope = _fileScope('postToken');
this.logger.debug(_scope, 'called', { 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) => {
await this.db.context(async (dbCtx) => {