How to deal with unauthorized or revoked credentials

Mar 30, 2014 at 1:04 AM
Hello, great work.

I need to know if there is a way to know if credentials are valid or have been revoked after using TwitterCredentials.SetCredentials???

Thanks in advance.
Mar 30, 2014 at 6:09 PM
Edited Mar 30, 2014 at 6:09 PM
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
    // 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.

Marked as answer by linvi on 3/30/2014 at 10:10 AM
Mar 30, 2014 at 7:01 PM
Thanks. :)