See the project on GitHub:
https://github.com/AyogoHealth/cordova-plugin-oauth