andreareginato/oauth-ng — pull request #29 by alchemycs (2014-09-08 01:54:49+00:00)
Title: Broadcast the profile when available using the message 'ouath:profile'

After receiving `oauth:authorized` or `oauth:login` messages, using the `get()` method on the `Profile` directive is not available until some time later when the user profile request has completed.

One option is to have `Profile.get()` return a promise, however this may be a breaking change for other users of `oauth-ng`.

As an alternative, this pull request broadcasts an `oauth:profile` message with the profile attached as message data.