Skip to content
New issue

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

after logging in it redirect the user to the redirect url in android that is set to google (ios is working fine) #83

Open
sajjad-yousaf opened this issue Dec 26, 2020 · 2 comments

Comments

@sajjad-yousaf
Copy link

sajjad-yousaf commented Dec 26, 2020

<InstagramLogin
ref={ref => (this.instagramLogin = ref)}
appId='*******'
appSecret='********************'
redirectUrl='https://google.com/'
scopes={['user_profile', 'user_media']}
onLoginSuccess={this.setIgToken}
onLoginFailure={(data) => console.log(data)}
/>

this is my code that i used for instagram login, but i am facing an issue that after entering credentials, user is redirected to chrome instead of coming back to app with response, can anyone please help me how can i solve this problem?

@hungdev
Copy link
Owner

hungdev commented Jan 8, 2021

can you give me the video about this?

@Lg0gs
Copy link

Lg0gs commented Apr 9, 2021

@TeamDlxx @hungdev
I figured out how to solve this issue.
instagram.js file, line: 51 if (url && url.startsWith(this.props.redirectUrl)) { this is always false because the URL starts with https://www.google.com and my redirectUrl is https://google.com. You need to add www everywhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants