INNER CODE UNIT · TypeScript

AppComponent

SaiUpadhyayula/spring-boot-3-microservices-course · frontend/src/app/app.component.ts:13

export class AppComponent implements OnInit {
  title = 'microservices-shop-frontend';

  private readonly oidcSecurityService = inject(OidcSecurityService);

  ngOnInit(): void {
    this.oidcSecurityService
      .checkAuth()
      .subscribe(({isAuthenticated}) => {
        console.log('app authenticated', isAuthenticated);
      })
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…