mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Add a note about APIs in token authenticatable, closes #1959
This commit is contained in:
parent
6e79c5c242
commit
1da8490dbc
2 changed files with 13 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
* enhancement
|
* enhancement
|
||||||
* Default minimum password length is now 8 (by @carlosgaldino).
|
* Default minimum password length is now 8 (by @carlosgaldino).
|
||||||
* Confirmable now has a confirm_within option to set a period when the confirmation token is still valid (by @promisedlandt)
|
* Confirmable now has a confirm_within option to set a period while the confirmation token is still valid (by @promisedlandt)
|
||||||
|
|
||||||
* bug fix
|
* bug fix
|
||||||
* Fix a regression introduced on warden 1.2.1 (by @ejfinneran)
|
* Fix a regression introduced on warden 1.2.1 (by @ejfinneran)
|
||||||
|
|
|
@ -18,6 +18,18 @@ module Devise
|
||||||
# If you want to delete the token after it is used, you can do so in the
|
# If you want to delete the token after it is used, you can do so in the
|
||||||
# after_token_authentication callback.
|
# after_token_authentication callback.
|
||||||
#
|
#
|
||||||
|
# == APIs
|
||||||
|
#
|
||||||
|
# If you are using token authentication with APIs and using trackable. Every
|
||||||
|
# request will be considered as a new sign in (since there is no session in
|
||||||
|
# APIs). You can disable this by creating a before filter as follow:
|
||||||
|
#
|
||||||
|
# before_filter :skip_trackable
|
||||||
|
#
|
||||||
|
# def skip_trackable
|
||||||
|
# request.env['devise.skip_trackable'] = true
|
||||||
|
# end
|
||||||
|
#
|
||||||
# == Options
|
# == Options
|
||||||
#
|
#
|
||||||
# TokenAuthenticatable adds the following options to devise_for:
|
# TokenAuthenticatable adds the following options to devise_for:
|
||||||
|
|
Loading…
Reference in a new issue