From: Justin Wind Date: Sat, 10 Jun 2023 18:48:35 +0000 (-0700) Subject: fix un-awaited cookie setting X-Git-Tag: v1.3.1~2 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=29aaaee5ec2834fa363a8b9ea57bdc1362da4edc;p=squeep-authentication-module fix un-awaited cookie setting --- diff --git a/lib/session-manager.js b/lib/session-manager.js index cb4c712..43990cc 100644 --- a/lib/session-manager.js +++ b/lib/session-manager.js @@ -227,7 +227,7 @@ class SessionManager { const _scope = _fileScope('getAdminLogout'); this.logger.debug(_scope, 'called', { ctx }); - this._sessionCookieSet(res, '', 0); + await this._sessionCookieSet(res, '', 0); const redirect = ctx.queryParams['r'] || './';