Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: How do you handle authentication in Single Page Applications?
2 points by skyisblue on May 29, 2017 | hide | past | favorite | 3 comments


In SPA you usualy bind pages to routes or hashes.. so that points to something..

For example to have central router where you check you tokens etc. Take a look this example with auth0 and ReactJS



The same as in multiple page applications.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: