Piroro-hs / react-native-twitter

A Twitter API client library for React Native. Currently not maintained as my main motivation of creating this library was to use the User Streams API.
MIT License
39 stars 20 forks source link

Error when using rest.get #16

Open CRL-Cosmos opened 6 years ago

CRL-Cosmos commented 6 years ago

I am getting one problem when I implement rest.get var tokens = { consumerKey: this.state.config.twitter.consumerKey, consumerSecret: this.state.config.twitter.consumerSecret, accessToken: this.state.config.twitter.oauth_token, accessTokenSecret: this.state.config.twitter.oauth_verifier }; const {rest, stream} = twitter(tokens); rest.get("account/settings").then(() => {Alert.alert('done');}).catch(console.error);

I get this error : Error: 89 Invalid or expired token.