Open
Description
Hi,
First I'd like to say, this library has been very helpful so far in my authentication process.
Though I ran into some problems while trying to figure out where to get the profile details.
In the readme it said that you can use the 'oauth:profile' broadcast to achieve this.
So I implemented it, but instead of getting the profile I got information about the broadcast event.
Looking at the angular code I managed to find that the broadcast listener should have a second parameter, like this...
$scope.$on('oauth:profile', function(event, profile) {
console.log('User profile data retrieved: ', profile);
});
Do correct me if I'm wrong, but I guess the example in the readme should contain two parameters instead of one. Or maybe soms code broke/changed.