Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

283
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!