Skip to content

Commit fb710c8

Browse files
authored
Fix docs/config/initialization.md (#1464)
1 parent c922580 commit fb710c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/config/initialization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The following settings are available for configuration in `config/initializers/devise_token_auth.rb`:
44

55
| Name (default) | Description|
6-
|---|---|---|
6+
|---|---|
77
| **`change_headers_on_each_request`** (`true`) | By default the access-token header will change after each request. The client is responsible for keeping track of the changing tokens. Both [ng-token-auth](https://github.com/lynndylanhurley/ng-token-auth) and [jToker](https://github.com/lynndylanhurley/j-toker) do this out of the box. While this implementation is more secure, it can be difficult to manage. Set this to false to prevent the `access-token` header from changing after each request. [Read more](/conceptual#about-token-management). |
88
| **`token_lifespan`** (`2.weeks`) | Set the length of your tokens' lifespans. Users will need to re-authenticate after this duration of time has passed since their last login. |
99
| **`token_cost`** (`10`) | Set the cost of your tokens' cost. The possible cost value is within range from 4 to 31. It is recommended to not use a value more than 10. For details see [BCrypt Cost Factors](https://github.com/codahale/bcrypt-ruby#cost-factors). |

0 commit comments

Comments
 (0)