lib/facets/oauthable.ts
Function authenticateRequest
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static authenticateRequest(action: Action, params: any, User: Model) {
debug(`[${ action.request.id }]: attempting to authenticate`);
if (!params.provider) {
throw new Errors.BadRequest(`No OAuth provider was specified, unable to attempt OAuth login`);
}