Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: How to deal with unauthorized or revoked credentials

$
0
0
Hi there,

This feature is implemented but I agree that it is not clear.
To check if the current credentials are valid, you can simply do this:
var user = User.GetLoggedUser();
if (user == null)
{
    // The credentials are invalid
    Debug.WriteLine(ExceptionHandler.GetLastException().TwitterDescription);
}
else
{
    // The credentials are valid
}
For the next release I will try to find a better system to do that. Probably using a TwitterCredentials.AreCredentialsValid();
Thank you for the feedback.

Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>