lib/facets/authenticatable.ts
Function authenticate
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static async authenticate(action: Action, params: any, allowedStrategies: string[] | string) {
let failureReason: Error;
let attemptNextStrategy = async (strategies: AuthStrategy[]): Promise<Model> => {
let currentStrategy = strategies.shift();
if (!currentStrategy) {