From 592feb54b7c8f066ccb60f35bcc5548df5f8d237 Mon Sep 17 00:00:00 2001 From: Pierre Donias Date: Fri, 18 Sep 2020 10:54:20 +0200 Subject: [PATCH] fix(xo-server/_authenticateUser): remove broken/unused provider API (#5270) --- packages/xo-server/src/xo-mixins/authentication.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/xo-server/src/xo-mixins/authentication.js b/packages/xo-server/src/xo-mixins/authentication.js index 571d8e059..4e30a3c41 100644 --- a/packages/xo-server/src/xo-mixins/authentication.js +++ b/packages/xo-server/src/xo-mixins/authentication.js @@ -97,7 +97,6 @@ export default class { try { // A provider can return: // - `undefined`/`null` if the user could not be authenticated - // - the identifier of the authenticated user // - an object containing: // - `userId` // - optionally `expiration` to indicate when the session is no longer @@ -111,12 +110,6 @@ export default class { continue } - if (typeof result === 'string') { - return { - user: await this._getUser(result), - } - } - const { userId, username, expiration } = result return {