We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey - appreciate the work, saved me a lot of fiddling, just one request :-)
As per here: https://developer.twitter.com/en/docs/basics/authentication/api-reference/authenticate we would like pass a screen_name param to the popup URL to prefill the screen_name input.
I think, its just a matter of adding it to TwitterLogin.propTypes and appending it to the popup url like so
popup.location = https://api.twitter.com/oauth/authenticate?oauth_token=${data.oauth_token}&force_login=${this.props.forceLogin}&screen_name=${this.props.screenName||""}`;`
popup.location =
if the property is not supplied the || or just passes the empty string, with no visible effect.
I'm going to clone it and give it a try (any reason I shouldn't ?) - if it works as expected do you want a pull request?
The text was updated successfully, but these errors were encountered:
Hi @Serexx,
Great idea. I don't see any reason why we should not have this feature. I would be interested in PR. So go ahead!
Sorry, something went wrong.
You can try this package, which return object like this:
{ oauth_token: "abc" oauth_token_secret: "def" screen_name: "username" user_id: "1234" }
And here you can find playground: https://alexandrtovmach.github.io/react-twitter-login/
No branches or pull requests
Hey - appreciate the work, saved me a lot of fiddling, just one request :-)
As per here:
https://developer.twitter.com/en/docs/basics/authentication/api-reference/authenticate
we would like pass a screen_name param to the popup URL to prefill the screen_name input.
I think, its just a matter of adding it to TwitterLogin.propTypes and appending it to the popup url like so
popup.location =
https://api.twitter.com/oauth/authenticate?oauth_token=${data.oauth_token}&force_login=${this.props.forceLogin}&screen_name=${this.props.screenName||""}`;`if the property is not supplied the || or just passes the empty string, with no visible effect.
I'm going to clone it and give it a try (any reason I shouldn't ?) - if it works as expected do you want a pull request?
The text was updated successfully, but these errors were encountered: