-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google auth not writing to db #77
Comments
Have you found a resolution to this? I'm having a somewhat related issue with Google - in my case the Twitter goes and authenticates and writes to DB, and google authenticates with google, comes back, but hangs in an infinite loop and never writes anything to DB and never redirects back to '/'. If the timeout is not set to -1, it simply times out with:
Twitter and FB seem not to have any issues - just Google. |
Here's what I did (and I'm just starting out in Node, so I don't think I've got the chops to update code yet). In example.js: Using both these scope addresses will get it working using id. You'll get a response like this: {"id":"108165846879548747301","email":"[email protected]","verified_email":true,"name":"Ed Hubbell","given_name":"Ed","family_name":"Hubbell"} In modules/google/plugin.js: schema.static('createWithGoogleOAuth', function (googleUser, accessToken, accessTokenExtra, callback) {
and in modules/google/everyauth.js
and in schema.js: module.exports = { Hope this helps someone. |
I'm having an odd issue where I'm able to authenticate and see my postback data and session using Google, but when I check MongoDB, there is no document for that login. I have tested this with Twitter and Facebook and am able to successfully write to mongo using them, it's weird it's only happening with Google.
The text was updated successfully, but these errors were encountered: