Example #1
0
        private static async Task <AuthenticationContext> RefreshSessionTokenAsync(IMediaFireAgent agent)
        {
            try {
                var userInfo = await agent.GetAsync <MediaFireGetUserInfoResponse>(MediaFireApiUserMethods.GetInfo);

                return(agent.User.GetAuthenticationContext());
            } catch (MediaFireApiException) {
                return(null);
            }
        }