I am looking for a better approach to my problem here. I have a remember me functionality on my login form. Ones the user click on remember me box, My API sends me Token.
My question is what is the best way to store this token and authenticate user again when they are back to my site?
What I thought,
- Create a Cookie and store token there.
- Create a local Storage.
Please give me any advice which might help me.