Can not use RN WebView component to get a token?

#1

Can not use RN WebView component to get a token?

I use Github oauth, when I add WebView component to get url, there are error info

NSURLErrorDomain error -1004

when I add my github page’s url ,its’ works.

I can’t find bugs.

#2

Hi! Can you create a Snack reproducing this bug? Don’t really understand what you mean by

when I add my github page’s url ,its’ works.

#3

It seems in expo can’t use webview to get oauth information

#4

you might want to look at https://github.com/brentvatne/oauth-examples which shows you how you can authenticate with github and other oauth providers

#5

**thanks **. I can get token from AuthSession method . seems can’t use React navigation’s linking to redirect back.

#6

Instead of having AuthSession link back to your React Navigation route (not sure if this is what you’re trying to do), once you get the token from AuthSession can you use React Navigation’s APIs to navigate to the screen of your choice, completely independent from AuthSession?

closed #7

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.