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

Does not return token if the redirect url doesn't have "www" #78

Open ashmaster opened 3 years ago

ashmaster commented 3 years ago

Inside the webview navigation state change the url is checked using startWith() method but it returns false if the redirect url doesn't contain "www"

hungdev commented 3 years ago

@ashmaster thank for your reporting, now we must enter the correct redirectUrl, i will fix it in next version :)

Rramandeep commented 3 years ago

in webview after authorize request page is navigating to redirect url but not returning any token.

ashmaster commented 3 years ago

in webview after authorize request page is navigating to redirect url but not returning any token.

Did you try giving www for the redirect url

Rramandeep commented 3 years ago

in webview after authorize request page is navigating to redirect url but not returning any token.

Did you try giving www for the redirect url

but on fb dev console i cant add www as redirect url, both url(Oauth redirect url in fb dev console and redirect url in webView) should be same.

Rramandeep commented 3 years ago

@ashmaster how to solve this?

hungdev commented 3 years ago

@ashmaster @Rramandeep hi guys, now im fixing this bug, but I tried with redirect url without www, it can still return token. could you give me your code? i want to see your redirect url format.