import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { SigninComponent } from './app/signin/signin.component';
import { HttpClientModule } from '@angular/common/http';
import {
SocialLoginModule,
AuthServiceConfig,
GoogleLoginProvider,
FacebookLoginProvider,
} from "angular5-social-login";
export function getAuthServiceConfigs() {
let config = new AuthServiceConfig(
[
{
id: FacebookLoginProvider.PROVIDER_ID,
provider: new FacebookLoginProvider("*******")
},
{
id: GoogleLoginProvider.PROVIDER_ID,
provider: new GoogleLoginProvider("Your-Google-Client-Id")
},
];
);
return config;
}
@NgModule({
imports: [
AppComponent,
SocialLoginModule,
BrowserModule
],
providers: [
{
provide: AuthServiceConfig,
useFactory: getAuthServiceConfigs
}
],
bootstrap: [AppComponent],
declarations: [SigninComponent]
})
export class AppModule { }
I'm trying to connect the facebook login with the angular5-social-login library, but I find the error ERROR in src / app / app.module.ts (26.8): error TS1005: ')' expected.
I leave the code snippet