The Stormpath API shut down on August 17, 2017. Thank you to all the developers who have used Stormpath. Update 5/12/2016: Building token authentication in your single page application? JJWT is a Java library providing end-to-end JWT creation and verification, developed by our very own Les Hazlewood. Forever free and open-source (Apache License, Version 2.0), JJWT is simple to use and understand.
![The Problem with Securing Single Page Applications](https://cdn-ak-scissors.b.st-hatena.com/image/square/62f1d611c5c8a64ba8e19c816d48b6b2c3f2789f/height=288;version=1;width=512/http%3A%2F%2Fstormpath.com%2Fwp-content%2Fuploads%2F2016%2F04%2Fxss.gif)