paulvanbladel / aurelia-auth

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

Raise 'auth:logout' event after logging out not before #153

Closed fgurtler closed 7 years ago

fgurtler commented 8 years ago

The other auth: events are raised after successfully completing the action.

auth:logout was being raised prior to logging out, which could cause some difficulties if a developer subscribed to the handler and checked the isAuthenticated() method.