Skip to content

Commit

Permalink
Remove root compoenent debug info.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredx30 committed Dec 9, 2021
1 parent 8dc419c commit daa27ea
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
import { Component, OnInit } from '@angular/core';
import { OidcSecurityService } from 'angular-auth-oidc-client';
import { Component } from '@angular/core';

@Component({
selector: 'wh-app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent implements OnInit{
export class AppComponent {
title = 'wharf';

constructor(public oidcSecurityService: OidcSecurityService) {}

ngOnInit() {
this.oidcSecurityService.checkAuth().subscribe(({ isAuthenticated, userData, accessToken }) => {
console.log('app authenticated', isAuthenticated);
console.log(`Current access token is '${accessToken}'`);
});
}

}

0 comments on commit daa27ea

Please sign in to comment.