ios - Unexpected behaviour in app with Login with Google after redirection from Safari using react native oauth -
i have implemented login facebook , login google library in app. working fine on android. both facebook , google. also, fine facebook on ios. there couple of issues login google on ios. here what's happening
when logging google first time, can need on safari , after logging in there, can redirect app behaviour in app unexpected (nothing happens), while facebook, app gets data , code executed.
after when try logging in again google, these warnings on terminal:
<warning>: ignoring credentials key: hash <warning>: ignoring credentials key: superclass <warning>: ignoring credentials key: description ignoring credentials key: debugdescription
this way, implementing login google in code:
loginwithgoogle = () => { manager.authorize('google', {scopes: 'email'}) .then((resp) => { if(resp.authorized) { console.log('hello'); manager.makerequest('google','https://www.googleapis.com/plus/v1/people/me') .then(resp => { console.log(resp); if (resp.status === 200) { this.registeruser(resp.data.displayname,'',resp.data.emails[0].value, "password", "google",resp.data.id) // this.props.nav.push({ name: 'locations', background: 'purple'}) } }) .catch(error => { console.error(error); console.log('errorrorororo'); }); } }) .catch(err => { console.error(err); console.log("aaaaaeroro"); }); }
Comments
Post a Comment