Can not use RN WebView component to get a token?

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.

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.

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

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

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

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?

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