sabyasachibiswal / angular5-social-login

Social authentication module for Angular 5. Includes Facebook and Google login with AOT compatibility.
40 stars 74 forks source link

Declaration or statement expected. #42

Closed abhisheksharma662 closed 5 years ago

abhisheksharma662 commented 5 years ago

export function getAuthServiceConfigs() { let config = new AuthServiceConfig( [ { id: GoogleLoginProvider.PROVIDER_ID, provider: new GoogleLoginProvider("476522047024-sdu9l9cav23g7cs6g2lhm4nc89h6boje.apps.googleusercontent.com") } ]; ); return config; }

code is completely fine but throwing error and not able to run properly can anyone give me solutiuon ?

abhisheksharma662 commented 5 years ago

i am searching from past 1 weak to sort out the issue and not found anything can anyone please solve my problem so that i can use this plugin and suggest everyone to use it

sabyasachibiswal commented 5 years ago

Can you provide with the error it's throwing?

abhisheksharma662 commented 5 years ago

https://ibb.co/0MX3Chc https://ibb.co/8Kk9j7D

sir 2 jpg i marked one is my terminal jpg second one is my code jpg as you can see terminal is throwing error on line no 83 Declaration or statement expected

sabyasachibiswal commented 5 years ago
import {AuthServiceConfig, GoogleLoginProvider, SocialLoginModule} from 'angular5-social-login';
import {environment} from '../environments/environment';

export function getAuthServiceConfigs() {
  let config = new AuthServiceConfig([{
        id: GoogleLoginProvider.PROVIDER_ID,
        provider: new GoogleLoginProvider(environment.GOOGLE_SITE_KEY)
  }]);
  return config;
}

This will resolve the issue.