react-native-twitter icon indicating copy to clipboard operation
react-native-twitter copied to clipboard

Error when using rest.get

Open CRL-Cosmos opened this issue 7 years ago • 0 comments

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.

CRL-Cosmos avatar Dec 01 '17 10:12 CRL-Cosmos