-
Notifications
You must be signed in to change notification settings - Fork 88
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
[feature-request] declarative access to currentUser #98
Comments
We had that in original implementation, but decided to take it out. The reasoning was that we were replicating gapi.auth2.getAuthInstance().currentUser.get().getBasicProfile(). It might come back in one day, I am counting your vote :) Note to self, a nice way to do it would be:
|
I think we should provide this to uses. We ended up doing the exact same thing for the I/O web app. There's clearly a need for a computed property :) |
As for "replicating": Isn't the main purpose of this element to replicate the behaviour of the gapi.auth2 methods, hiding the complexity of the actual calls? ;) |
+1. The whole point of these components is to smooth over API complexities. |
Do we want to expose any additional information, such as getBasicInfo() if available? |
I think just having the user information available (without having to call any extra methods) would be best. The
One extra thing that might make sense is to expose the |
Some news about it? The |
The feature shown by @ebidel at the Google I/O will be available soon or is still to be implemented ? |
Which feature? We didn't use anything new for sign in this year. On Wed, May 25, 2016, 11:58 AM Mason Louchart [email protected]
|
The |
As opposed to waiting for the
google-signin-success
event or binding tosignedIn
and observing changes, and then getting the user information asgapi.auth2.getAuthInstance().currentUser.get().getBasicProfile()
it would be nice to have this information exposed ascurrentUser
property that could be bound to instead ofsignedIn
.That would simplify creating a log-in UI that displays name/picture of the logged in user after a successful authentication.
Sample
Not really essential since it's easy enough to create yourself, but people wouldn't have to know/learn about the gapi.auth2 calls that way.
The text was updated successfully, but these errors were encountered: