demo project to understand better authentication for single page app