Function egg_mode::verify_tokens [] [src]

pub fn verify_tokens(token: &Token) -> WebResponse<TwitterUser>

If the given tokens are valid, return the user information for the authenticated user.

If you have cached access tokens, using this method is a convenient way to make sure they're still valid. If the user has revoked access from your app, this function will return an error from Twitter indicating that you don't have access to the user.