@rafareyes7 wrote:
while working on Ionic 3 after execute logout() using firebase I’m getting the follwing error after the redirection to login-page:
Error: Missing or insufficient permissions. at new FirestoreError (error.js:140) at JsonProtoSerializer.fromRpcStatus (serializer.js:93) at JsonProtoSerializer.fromWatchChange (serializer.js:573) at PersistentListenStream.onMessage (persistent_stream.js:393) at persistent_stream.js:337 at PersistentListenStream.<anonymous> (persistent_stream.js:313) at step (tslib.es6.js:97) at Object.next (tslib.es6.js:78) at tslib.es6.js:71 at new t (polyfills.js:3)
The auth-provider’s logout function execute the following code:
logout(): Promise<any> { // TODO: Read from storage if user loggedIn via FB before the call. return new Promise((resolve, reject) => { this.angularFireAuth.auth.signOut().then(() => { resolve(); }).catch(() => { reject(); }); }); }
and the caller funtion within the component execute the following code:
private logout(): void { this.auth.logout().then(() => { this.menuCtrl.close(); this.nav.setRoot('page-login'); }); }
Immediately after the login-page displays, I get the error.
Any help?
Posts: 1
Participants: 1