devise-token_authenticatable icon indicating copy to clipboard operation
devise-token_authenticatable copied to clipboard

This gem provides the extracted Token Authenticatable module of devise. It enables the user to sign in via an authentication token. This token can b...

Results 2 devise-token_authenticatable issues
Sort by recently updated
recently updated
newest added

https://github.com/baschtl/devise-token_authenticatable/blob/2e9e3e9ed59916715a019ae3fd9399bba9c1b3e6/lib/devise/token_authenticatable/strategy.rb#L40 ``` Devise::TokenAuthenticatable.setup do |config| config.token_expires_in = 90.days end ``` ``` irb(main):019:0> resource = User.last => # resource.authentication_token_created_at = Time.now-100.days => 2022-11-12 06:18:34.494768917 +0000 irb(main):021:0> resource.save! => true irb(main):022:0> resource.token_expires_in...