import { AuthService } from "angularx-social-login"; code example

Example: angular x social login

import { SocialAuthService } from "angularx-social-login";import { FacebookLoginProvider, GoogleLoginProvider } from "angularx-social-login"; @Component({  selector: 'app-demo',  templateUrl: './demo.component.html',  styleUrls: ['./demo.component.css']})export class DemoComponent implements OnInit {   constructor(private authService: SocialAuthService) { }   signInWithGoogle(): void {    this.authService.signIn(GoogleLoginProvider.PROVIDER_ID);  }   signInWithFB(): void {    this.authService.signIn(FacebookLoginProvider.PROVIDER_ID);  }   signOut(): void {    this.authService.signOut();  } }