I am trying to setup twitter authentication and after being authenticated to twitter, before the window closes i get an error message: "An error occurred while trying to load this page."
In the logs I saw this:
[2020-02-13 16:43:25] production.ERROR: TypeError: Argument 1 passed to Flarum\Forum\Auth\Registration::provideTrustedEmail() must be of the type string, null given, called in /opt/flarum/vendor/flarum/auth-twitter/src/TwitterAuthController.php on line 93 and defined in /opt/flarum/vendor/flarum/core/src/Forum/Auth/Registration.php:69
Stack trace:
#0 /opt/flarum/vendor/flarum/auth-twitter/src/TwitterAuthController.php(93): Flarum\Forum\Auth\Registration->provideTrustedEmail(NULL)
#1 /opt/flarum/vendor/flarum/core/src/Forum/Auth/ResponseFactory.php(41): Flarum\Auth\Twitter\TwitterAuthController->Flarum\Auth\Twitter\{closure}(Object(Flarum\Forum\Auth\Registration))
#2 /opt/flarum/vendor/flarum/auth-twitter/src/TwitterAuthController.php(97): Flarum\Forum\Auth\ResponseFactory->make('twitter', '129164342', Object(Closure))
#3 /opt/flarum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\Auth\Twitter\TwitterAuthController->handle(Object(Zend\Diactoros\ServerRequest))
#4 /opt/flarum/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Zend\Diactoros\ServerRequest), Array)
....
....