Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Google login sometimes results in a blank screen after entering credentials #167

Open
7 tasks done
chitezh opened this issue Jul 11, 2017 · 7 comments
Open
7 tasks done

Comments

@chitezh
Copy link

chitezh commented Jul 11, 2017

  • Code snippet or sample project that reproduces the bug
const lock = new Auth0Lock({ <clientId>, <domain>, useBrowser: true })
lock.show({ authParams: { scope: "openid email" } }, (err, profile, token) => {})
  • Screenshots when appropriate
    image
  • Lock version
    react-native-lock: 0.6.0
  • iOS and/or Android version
    iPhone 6 & 7
  • If using CocoaPods, please include your Podfile
    pod 'Lock', '~> 1.29'
    pod 'Lock/TouchID'
    pod 'Lock/SMS'
    pod 'Lock/Email'
    pod 'Lock/Safari'
  • React Native & React version
    RN - 0.45.1
    React -16.0.0-alpha.12
  • NPM version
    4.2.0

Note: This bug does not happen always

@chitezh chitezh changed the title Lock sometimes results in a blank screen after entering credentials Google login sometimes results in a blank screen after entering credentials Jul 11, 2017
@pilwon
Copy link

pilwon commented Jul 11, 2017

Tested with all versions of react-native-lock@1.29.x and I also face the same issue... (happens not only with Google but also with all social connectors I've tried -- Facebook, Instagram, etc.)

For me, this bug happens always when I have useBrowser option enabled. The registration seems to work correctly in the background as the account is successfully created on the server-side, however the user auth token is not returned back to the controller, instead the UI is stuck at the blank screen.

(Might be somewhat related to #131, #92)

@chitezh
Copy link
Author

chitezh commented Jul 11, 2017

@pilwon does it work sometimes for you? Mine works 70-80% of time

@pilwon
Copy link

pilwon commented Jul 11, 2017

@chitezh It doesn't work for me at all anymore. No issue with {useBrowser: false}.

@chitezh
Copy link
Author

chitezh commented Jul 11, 2017

Thanks. I'm trying to establish if it's the same issue
@pilwon don't you get the userAgent warning when you use {useBrowser: false}

@adam8810
Copy link

I've also started having a problem. The only thing I've changed from what I can tell is I've added redux into the mix. Anybody else also using Redux? #92 Gave me the impression that it could be redux-related but not sure yet. I'm going to try dismantling redux and see if that gets me anywhere.

@adam8810
Copy link

It's working now. I don't know if this is a redux issue still because I may have just messed with enough code to force a harder reload than what I was doing before.

My current theory is that this may be a hot reload issue. Because I noticed that everything seems to work when the app is hard-reloaded and the Lock login screens shows with a slide-up animation. I was not seeing that same animation when it was hot reloading and wasn't working. Hope that helps.

@adam8810
Copy link

Tried again this morning and I'm still getting the white screen after login.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants