NAXAM / accountkit-ios-binding

Xamarin Binding Library for AccountKit iOS
MIT License
0 stars 2 forks source link

RequestAccount always return null #2

Open donnan924 opened 6 years ago

donnan924 commented 6 years ago

hello, i need to get user's phone number through account, but account and error are both null. is there anything i need to check? (response type is Accesstoken, and login is completed.)

`public Task GetCurrentAccount(AKFResponseType responseType) { var taskCompletionSource = new TaskCompletionSource();

        InitAK(responseType);

        accountKit.RequestAccount((acc, error) =>
        {
            if (error != null)
            {
                taskCompletionSource.SetResult(null);
                return;
            }

            var account = acc as IAKFAccount;
            taskCompletionSource.SetResult(account);
        });

        return taskCompletionSource.Task;
    }`
tuyen-vuduc commented 6 years ago

I just updated the latest version and sample. I got this message [AccountKit][Error]: Invalid OAuth 2.0 Access Token.

Still investigate why it happens.

tuyen-vuduc commented 6 years ago

@donnan924 Plz try again in one hour. I think I found the root cause. commit 306ff1b3a9364c5d29388c1b70a12151c85246b8