My token generated seems to be about 20 characters, how do I change the length to something else ?
I checked the devise.rb
file and tried both:
config.token_authentication_key = :access_key
config.token_authenticatable.length = 40
produced this error:
config/initializers/devise.rb:110:in `block in <top (required)>': undefined method `token_authenticatable' for Devise:Module (NoMethodError)
and
config.token_authentication_key = :access_key
config.token_authentication_key.length = 40
produced this error:
/config/initializers/devise.rb:110:in `block in <top (required)>': undefined method `length=' for :access_key:Symbol (NoMethodError)
and both gave me errors when I tried to run the console.
Is there anyway to do this ?