I have a Single Page Application that needs to communicate with a REST API that requires authentication / authorization. I need to find a way to handle this that balances securi