Fix to support different method signatures when using with OAuth2Strategy and LocalStrategy.