In the Android SDK we allow checks to be chained together. https://github.com/aerogear/aerogear-android-sdk/blob/master/auth/src/main/java/org/aerogear/mobile/security/AbstractSecurityCheckExecutor.java Add a similar feature in the JS SDK. It doesn't have to have the complexity of the Android SDK one. |