Accessing cloud data sources from JavaScript using AJAX and JSON is at the core of so many applications. There are several complicated approaches and there is JSON Web Tokens.
Thousands of developers have chosen to run their Authentication and Backends from cloud providers for one reason. Simplicity.
Enter JSON Web Tokens, Auth0 and restdb.io. Auth0 lets you set up a world class authentication system in front of your application - in 10 minutes. By using the JSON Web Tokens and the JavaScript API from restdb.io, your data API is easily protected.
After all, your application needs 100% of your attention on the core features, which is everything that happens between authentication and the data store.
You'll find a link to a working application example at the end of this article.