How to secure a Javascript Single Page Application

How to secure a Javascript Single Page Application

Guides showing how to use OAuth security features in a generic SPA, to enable secure authentication and API calls