Skip to content

Missing 'oauth:profile' broadcast parameter for the example in the readme. #94

Open
@robin-maxxton

Description

@robin-maxxton

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions