hungdev/react-native-instagram-login

Invalid Response Type token

tragicmj opened this issue · 2 comments

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

remove response type

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.