Skip to content

Commit

Permalink
fixing authenticating user on page reload ({} is resolved to truthy)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaminski-tomasz authored and dsyer committed Mar 16, 2018
1 parent b3ebc2a commit d4ba1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion single/src/app/app.component.ts
Expand Up @@ -11,7 +11,7 @@ import 'rxjs/add/operator/finally';
})
export class AppComponent {
constructor(private app: AppService, private http: HttpClient, private router: Router) {
this.app.authenticate({}, undefined);
this.app.authenticate(undefined, undefined);
}
logout() {
this.http.post('logout', {}).finally(() => {
Expand Down

0 comments on commit d4ba1c4

Please sign in to comment.