Forum: Ruby on Rails has_secure_token

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
08550ef6896cefb3358d6ab1123d7e9c?d=identicon&s=25 Przemek Przemek (przemekp)
on 2017-04-22 14:37
Im trying to make a whole authentication In rails from scratch, instead
using devise gem. I used a has_secure_password, but in my app instead
storing session[:user_id] = after successful authentication I
should store user token. I've never tried has_secure_token, and I don't
know if I should store token sent with signup for ever and use it during
every  log_in session or I should generate new token after using proper
password? Of course I couldn't understand everything and it works
tottaly different.
This topic is locked and can not be replied to.