0

so i m making an online library app with angular !the user must log in every time he would like to buy a new item SO i m searching for a method that allowed me to store the user session in order to skip the authentication step every time he would liketo buy a new item

Any ideas ? thanks

Az Emna
  • 527
  • 2
  • 10
  • 26
  • use localStorage if you want to store the user session always or a service to save this user session. Remember that a services are living along all the live of the application – Eliseo Dec 05 '17 at 19:11
  • You could use ngrx-store and combine it with ngrx-store-localstorage to persist your state on pagerefreshes: https://github.com/ngrx/platform and https://github.com/btroncone/ngrx-store-localstorage – AT82 Dec 06 '17 at 09:51

0 Answers0