reactjs-social-login icon indicating copy to clipboard operation
reactjs-social-login copied to clipboard

not getting user data on Twitter logging

Open Deeptrentium opened this issue 3 years ago • 2 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Click on LoginSocialTwitter

Expected behavior getting logging use information

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Browser [e.g. chrome, safari]

Additional context Code Example

<LoginSocialTwitter client_id={client_id} client_secret={client_secret} redirect_uri="https://localhost:3000/club-settings/social-account" scope="tweet.read users.read follows.read+follows.write offline.access" onResolve={({provider, data}: IResolveParams) => { console.log('twitter', provider, data) }} onReject={(err: any) => { console.log("err",err) }} > <Button title={buttonTitle} classAddon=" c-button--icons mr-60" icon={c-icon${buttonIcon}} /> </LoginSocialTwitter>

after successful login and redirect URL call and getting this error

{error: "invalid_request", error_description: "Value passed for the authorization code was invalid."}

API called post https://cors.bridged.cc/https://api.twitter.com/2/oauth2/token

parameters { code: redirect_uri: https://localhost:3000/club-settings/social-account client_id: grant_type: authorization_code code_verifier: challenge }

Deeptrentium avatar Oct 14 '22 10:10 Deeptrentium

Twitter still works normally on https://react-social-login.netlify.app/ Please make sure you has been added your local domain to your app and redirect_uri should be window.location.href

cuongdevjs avatar Oct 14 '22 15:10 cuongdevjs

you can read README to see sample code and more detail

cuongdevjs avatar Oct 14 '22 15:10 cuongdevjs

follow the issue #72

cuongdevjs avatar Oct 25 '22 07:10 cuongdevjs