Closed AlessandroVol23 closed 2 years ago
Hi Alessandro, we have working demo app here: https://github.com/superfaceai/twitter-demo which works well and refresh token is returned by the strategy.
I checked your code and done
callback of the strategy should take only error or profile argument. I suggest to handle access and refresh tokens in strategy verify
callback.
Jan
I will just point out that our token handling is done here: https://github.com/superfaceai/twitter-demo/blob/main/get-tokens.js#L48
We have also another demo with database persistence: https://github.com/superfaceai/social-media-demo/blob/main/src/auth/twitter/auth.js
Thanks for answers I will check that 🙂👍🏽
@AlessandroVol23 can we close this issue? Did you manage to get refresh token?
Sorry about that! Yes it worked 🙂
HI 👋🏽
thanks for your library. I have an issue that I don't get a refresh token. I set the scope to "offline.access" and I get the refresh token when I make the call manually with a fetch. Not sure what the issue is. Here is my code:
Strategy
Init Auth
Callback