Comments (7)
Hi @pilarArr having trouble confirming this one. When logging in with multiple Google accounts and a fresh Meteor.users
collection, the username is displaying as expected. Can you provide a screencap/video of what you're experiencing?
from pup.
Hi @cleverbeagle,
Sorry for the delay, this would be the screencap of what I'm seeing, I also deleted the users collection before trying like you said and still nothing. I also tried with different google accounts and still got the same.
from pup.
Also this is the entry that is created in the Mongo Collection.
Because my profile is empty every time, the name is always empty and this only happens with Google, with Facebook it works.
from pup.
Pretty sure It's because OAuth uses Google (plus) to retrieve first and last name, and you don't have any.
from pup.
Interesting! Kind of wonky on Google's part, but makes sense as to why we'd see the difference. I'm not sure if we should qualify this as a bug since it's technically working as expected. Maybe the fix here is to just display the email address if we detect an empty name string?
P.S. @pilarArr and @zeiitoun do you have an email I can get in touch at (or could you email [email protected])? Wanted to see if either of you would be interested in helping with Pup.
from pup.
In the meteor documentation, it's specified that you can add options for google services when you call Meteor.loginWithGoogle. (here)
This options may include Googleβs additional URI parameters (https://developers.google.com/identity/protocols/OpenIDConnect#authenticationuriparameters) such as the "scope" that might be interesting here.
You could modify the login scope to "https://www.googleapis.com/auth/plus.login"? Which will ask the user to subscribe to Google Plus if he doesn't have any account.
(bonus point : It's the recommended login scope, meteor should change to this one)
(I will email you tonight or tomorrow, love your project ;))
from pup.
I went around this by changing the option requestPermissions
to ['email', 'profile']
. That fills the profile and fixes the empty name.
I'm not sure everyone wants to have a Google Plus account to sign up with their Google account, seems like an unnecessary extra step to create a Google Plus account just to sing up with Google, but that's just my newbie opinion π
P.S. @cleverbeagle I've sent you an email π
from pup.
Related Issues (20)
- Real-time updates HOT 6
- How to Connect to a react native app with pupql HOT 4
- compose is not a function HOT 3
- Update Apollo Client and Apollo Server Usage HOT 4
- Application stuck when trying to run. HOT 4
- checkIfBlackListed does not work as expected! HOT 4
- Paste true may be necessary on e2e tests login helper
- Incorporate Code Splitting for Pup V2 & client side Redux HOT 9
- Access Meteor settings file from Jest? HOT 2
- graphQL httpUri on staging and production settings HOT 1
- How to upgrade from v1-> v2 HOT 3
- Add License File
- Wildcard instead of GraphQL? HOT 3
- Upgrade to latest version of alanning:roles HOT 1
- is this repo still maintained? HOT 9
- Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:3000/graphql. (Reason: CORS request did not succeed). HOT 5
- Adding gql property to type user HOT 4
- Password only oauth possible? HOT 9
- Pup is moving!
- Apollo version and hooks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pup.