README.md in devise-token_authenticatable-0.4.6 vs README.md in devise-token_authenticatable-0.4.9
- old
+ new
@@ -25,12 +25,12 @@
*devise-token_authenticatable* | *devise*
-------------------------------:|---------
`~> 0.1` | `~> 3.2.0`
`~> 0.2` | `~> 3.3.0`
`~> 0.3` | `~> 3.4.0`
-`~> 0.4` | `~> 3.5.0`
-`~> 0.4.6` | `~> 3.5.2`
+`~> 0.4.0`, `< 0.4.9` | `~> 3.5.0`, `< 3.5.2`
+`~> 0.4.9` | `~> 3.5.2`
## Usage
Add `:token_authenticatable` to your devise model:
@@ -44,13 +44,12 @@
This gem can be configured as shown in the following:
```ruby
Devise::TokenAuthenticatable.setup do |config|
- # enables the expiration of a token after a session timeout,
- # only useful in connection with the devise timeoutable module,
- # defaults to false
- config.expire_auth_token_on_timeout = true
+ # enables the expiration of a token after a specified amount of time,
+ # defaults to nil
+ config.token_expires_in = 1.day
# set the authentication key name used by this module,
# defaults to :auth_token
config.token_authentication_key = :other_key_name