fix(xo-server/_authenticateUser): remove broken/unused provider API (#5270)

This commit is contained in:
Pierre Donias 2020-09-18 10:54:20 +02:00 committed by GitHub
parent 9c6b63e7e4
commit 592feb54b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,6 @@ export default class {
try { try {
// A provider can return: // A provider can return:
// - `undefined`/`null` if the user could not be authenticated // - `undefined`/`null` if the user could not be authenticated
// - the identifier of the authenticated user
// - an object containing: // - an object containing:
// - `userId` // - `userId`
// - optionally `expiration` to indicate when the session is no longer // - optionally `expiration` to indicate when the session is no longer
@ -111,12 +110,6 @@ export default class {
continue continue
} }
if (typeof result === 'string') {
return {
user: await this._getUser(result),
}
}
const { userId, username, expiration } = result const { userId, username, expiration } = result
return { return {