In that case, your front-end is irrelevant, I’d say. You can store the user data in cookie or Storage (the angular has this service already integrated), preferably cookie that you can control the validity, and whenever it is necessary to verify that the user is logged in, you send this information to the server and do the validation.
Example: generate a token with some login information to be verified, such as email, id and encrypted mode name.
That’s the basic idea. Store some cookie information, whenever the user accesses the app or accesses some restricted area, send this cookie to the server and validate the user authentication.
Thank you Celsom, I’ll try it the right way!
– urlflavio