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 {
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user