4 ms·
Ask HN: How do you handle authentication in Single Page Applications?
- GrumpyNl 9y agoThe same as in multiple page applications.
- sgoran 9y agoIn 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
- sgoran 9y agohttps://auth0.com/docs/quickstart/spa/react/01-login https://auth0.com/docs/quickstart/spa/react/01-login