DEV Community

Cover image for React Native: Authentication with WebView

React Native: Authentication with WebView

Jason Safaiyeh on January 13, 2020

A more interactive tutorial: https://getleaf.app/dsps301/reactnativeau-pvopbxhp You have a web application with all your features built out and no...
Collapse
 
falay26 profile image
falay26

I am working on a project with react-native-webview and the web site has functions 'Login with Facebook' and 'Login with Google' but they are not working on the webview. (Works on browsers by opening a new tab.) Is this the solution i am looking for to make them work?

Collapse
 
constantintaivan profile image
constantintaivan

I'm also looking for Login with Google working inside the new webview.
It seems Google doesn't allow this anymore: developers.googleblog.com/2016/08/...

Collapse
 
rozdrigo profile image
Rozdrigo

you got answers, i'm having the same problem could you help me?

Collapse
 
kishan_bharda profile image
Kishan Bharda

How I can clear cookies?

Collapse
 
safaiyeh profile image
Jason Safaiyeh

react-native-cookies has clear functions.

Collapse
 
kishan_bharda profile image
Kishan Bharda

I checked that, but it not working in react native 0.60 or later. Any other solution?

Thread Thread
 
safaiyeh profile image
Jason Safaiyeh

Could you make an issue on the repo? I maintain it so any issues would be fixed.

Collapse
 
yunusunver profile image
Yunus Ünver

Hello, I want to see every request and response returned in webview. How can I access it?

Collapse
 
cuongptit profile image
CuongPTIT

Hi bro, i am a beginner. I see your code but my code don't run. I don't understand how it runs. Do you have an tutorial video? It is easy to understand when i can watch how it runs. Thanks bro.