Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

284
Visualizações
ionic auth service logout error

I'm implementing a login system for my ionic app. The signup, login and logout are handled by ionics Auth-Service. Signup and login are working fine, but the logout throws an error in main.js:

_this.plt is null

The logout-Code is taken from the documentation:

this.auth.logout();

The strange thing is, that the logout is performed, but named error is shown (on debug console and as ionic error screen).

The logout button is placed inside the sidemenu of the app:

<ion-menu [content]="content" *ngIf="auth.isAuthenticated()">
  <ion-header>
    <ion-toolbar>
      <ion-title>Menu</ion-title>
    </ion-toolbar>
  </ion-header>

  <ion-content>
    <ion-list>
      <button menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)">
        {{p.title}}
      </button>
    </ion-list>

    <ion-fab bottom right>
      <button ion-fab mini><ion-icon name="arrow-dropleft"></ion-icon></button>
      <ion-fab-list side="left">
        <button menuClose ion-fab (click)="logout()"><ion-icon name="md-log-out"></ion-icon></button>
      </ion-fab-list>
    </ion-fab>

  </ion-content>
</ion-menu>

<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>

Did anybody had the same problem or can help me find out whats the problem here?

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda