0
使用devise 3.2.4 with rails 3.2.13。config.expire_auth_token_on_timeout不能在設計3.2.4中使用rails 3.2.13
我想到期會話超時身份驗證令牌因此我devise.rb文件,我已經做以下變化: -
config.timeout_in = 1.minutes config.expire_auth_token_on_timeout = true
超時作品完美,用戶在1分鐘後註銷不活動期,但auth令牌在超時時沒有過期。
下面是用戶模型: -
devise :database_authenticatable, :async , :registerable, :confirmable,
:recoverable, :rememberable, :trackable, :validatable, :omniauthable, :timeoutable
任何想法,我缺少的是什麼?