DEV Community

Discussion on: Custom authentication in Ruby on Rails

Collapse
 
efranco89 profile image
Enrique Franco

Thanks, this has helped me to understand a few definitions and how authentication really works, I have only one comment in the SessionController when auth.authenticated? is true the cookies.signed.permanent[:auth_token] is equal to auth.user.auth_token instead of only user.auth_token if you leave like that won't work

Collapse
 
abeidahmed profile image
Abeid Ahmed

Nice catch! Thanks for pointing it out.