fix(xo-server/_authenticateUser): remove broken/unused provider API (#5270)
This commit is contained in:
parent
9c6b63e7e4
commit
592feb54b7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user