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 {