I have been attempting to utilize nebular oauth in my login component, following the documentation closely. The only difference is that I am extending the nebular login component. However, when implementing this code, I encounter an error.
export class LoginComponent extends NbLoginComponent implements OnDestroy {
public user: SocialUser;
private loggedIn: boolean;
constructor(service: NbAuthService,options: {},cd: ChangeDetectorRef, router: Router) {
super(service,{},cd, router);
}
alive = true;
login() {
this.service.authenticate('google')
.pipe(takeWhile(() => this.alive))
.subscribe((authResult: NbAuthResult) => {
});
}
ngOnDestroy(): void {
this.alive = false;
}
}
https://i.sstatic.net/7cIEz.png
Can anyone help me understand what might be causing this issue?