paulvanbladel / aurelia-auth

:key: Authentication plugin for aurelia
200 stars 74 forks source link

Events for authentication actions #128

Closed RobertHerhold closed 8 years ago

RobertHerhold commented 8 years ago

This PR uses Aurelia's event aggregator to publish events at each step of authentication (login, logout, authenticate, signup, unlink). This is useful in situations where part of the navbar (which would be separate from the login page) needs to be updated depending on the authentication (or lack thereof) of the user.