import { Component , OnInit } from '@angular/core' ; import { AuthService } from '../auth/auth.service' ; @ Component ( { selector : 'app-callback' , templateUrl : './callback.component.html' , styleUrls : [ './callback.component.css' ] } ) export class CallbackComponent implements OnInit { constructor ( public auth ) { } ngOnInit ( ) { this . auth . handleLoginCallback ( ) ; } }