Auth APIs require location.protocol to be http or https, whereas in Ionic and Cordova the protocol is `file`. Related issues: #279, #287