Last active
January 30, 2022 18:52
-
-
Save Abhishek950650/f78f4a10da6ff76f2e4d9a2ee4ef8092 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import {HttpClientModule} from '@angular/common/http'; | |
import { AppComponent } from './app.component'; | |
import {FormsModule} from '@angular/forms'; | |
import {SocialLoginModule, SocialAuthServiceConfig } from 'angularx-social-login'; | |
import {GoogleLoginProvider} from 'angularx-social-login'; | |
import { LoginComponent } from './login/login.component' | |
@NgModule({ | |
declarations: [ | |
AppComponent, | |
LoginComponent | |
], | |
imports: [ | |
BrowserModule, | |
SocialLoginModule, | |
HttpClientModule, | |
FormsModule | |
], | |
providers: [ | |
{ | |
provide: 'SocialAuthServiceConfig', | |
useValue: { | |
autoLogin: false, | |
providers: [ | |
{ | |
id: GoogleLoginProvider.PROVIDER_ID, | |
provider: new GoogleLoginProvider( | |
'891978534256-**********.apps.googleusercontent.com' | |
) | |
} | |
], | |
onError: (err) => { | |
console.error(err); | |
} | |
} as SocialAuthServiceConfig, | |
} | |
], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
part of AngularwebAuth