Closed gaearon closed 10 years ago
I don't think we really need a SupportsSave
and a SupportsDelete
, do we? Not much point in being able to save an account that you can't later delete.
@ermau Fixed now. I only left SupportsSave
. Can you please take another look?
Remove the Xamarin.Auth submodule change and I will merge this.
@ermau
I squashed my changes and force-pushed the update.
SaveAccount
/DeleteAccount
to accept the more generic Android.Content.Context
instead of Android.App.Activity
. This is the type AccountStore
wants. I've heard from Android folks it's better to avoid passing the Activity
around because it might get captured somewhere, leading to memory leaks, whereas passing e.g. Android.App.Application.Context
would do just fine in this case.
DeleteAccount
implements logging out. Our use case forSaveAccount
is when your token gets expired, and you need to save the account with an updated token.Xamarin.Auth is bumped to the version that contains
AccountStore.Delete
. Commit licensed under MIT/X11