gonzalo-bulnes/simple_token_authentication

Page reload - persist login

grothier opened this issue · 0 comments

Hi ! I recentle switched my Rails app to a rails API including a react app with webpacker.
I made all authentication process using this great gem, thanks !

However, I can't find how to persist login on page reload. When a user login, he receives the email and authentication token which I store in my Redux Store. However, since it is no longer session based, on page reload my user has to login again.

How do you guys manage to keep them logged in ?

Thanks for your help !

EDIT :

Sorry I did not understand I had to handle this on the client side. Done !