Adonisjs, Nodejs.
AuthMiddleware { guards?: (keyof Authenticators)[] } = {} ) { - await ctx.auth.authenticateUsing(options.guards, { - loginRoute: this.redirectTo - }) + try { + await ctx.auth.authenticateUsing(options.guards, { + loginRoute: this.redirectTo + }) + } catch (err) { + if (err instanceof