OAuth2Authenticator - Object reference not set to an instance of an object

У меня есть ViewModel с очень простым кодом

private void _yOauth() 
{
    var auth = new OAuth2Authenticator
    (
        clientId: clientId,
        scope: scope,
        authorizeUrl: new Uri(oauthUrl),
        redirectUrl: new Uri(redirectUrl),
        clientSecret: clientSecret,
        accessTokenUrl: new Uri(accessTokenUrl)
    );

    auth.Completed += AuthOnCompleted;
    auth.Error += AuthOnError;

    var presenter = new Xamarin.Auth.Presenters.OAuthLoginPresenter();
    presenter.Login(auth);
}

Который обваливается с ошибкой на presenter.Login(auth);

Object reference not set to an instance of an object.

введите сюда описание изображения

При том что и presenter и auth объекты - не null.


Ответы (0 шт):