hungdev / react-native-instagram-login

a react native instagram login component (support android & ios). Pull requests are welcome!
https://www.npmjs.com/package/react-native-instagram-login
184 stars 103 forks source link

Invalid Response Type token #104

Open tragicmj opened 2 years ago

tragicmj commented 2 years ago

I am getting the below error when responseType is set to 'token'

          <InstagramLogin
              ref={ref => (this.instagramLogin = ref)}
              appId='*************'
              appSecret='*****************'
              responseType={'token'}
              redirectUrl='https://www.google.com'
              scopes={['user_profile', 'user_media']}
              onLoginSuccess={this.setIgToken}
              onLoginFailure={(data) => console.log(data)}
              cacheEnabled={false}
              incognito={true}
              thirdPartyCookiesEnabled={false}
              sharedCookiesEnabled={false}
              domStorageEnabled={false}
            />

simulator_screenshot_90076576-CF4B-41FC-8F1E-871108E7D437

Ameer-Muawiya commented 2 years ago

remove response type

tragicmj commented 2 years ago

I actually needed token that's why I added it. For now, I am handling it using webview without library. Would be much better if someone checks on this.