README.md in authentication-0.0.2 vs README.md in authentication-0.0.3
- old
+ new
@@ -16,9 +16,11 @@
1. Define `#find_current_user` in your controller.
2. That's all. You can use the method below in the controller:
- `#login!` and `#logout!` to log in/out.
- `#current_user` and `#current_user_id` to get current user or its id.
- `#logged_in?` to ask logged in or not.
+ - `#after_login` will be invoked after `#login!`.
+ - `#after_logout` will be invoked after `#logout!`.
[Example](https://github.com/fujimura/authentication_rails_example) and [spec](https://github.com/fujimura/authentication/blob/master/spec/lib/authentication_spec.rb) might be also helpful.
## Advanced usage