Skip to content

Commit

Permalink
Fixing From imports (#495)
Browse files Browse the repository at this point in the history
Only the path declaration "angularx-social-login" in the import doesn't work.
  • Loading branch information
arsvargas authored May 12, 2022
1 parent bb6ffda commit b01836e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ npm i @abacritt/angularx-social-login
In your `AppModule`, import the `SocialLoginModule`

```javascript
import { SocialLoginModule, SocialAuthServiceConfig } from 'angularx-social-login';
import { SocialLoginModule, SocialAuthServiceConfig } from '@abacritt/angularx-social-login';
import {
GoogleLoginProvider,
FacebookLoginProvider
} from 'angularx-social-login';
} from '@abacritt/angularx-social-login';

@NgModule({
declarations: [
Expand Down Expand Up @@ -74,8 +74,8 @@ export class AppModule { }

```javascript

import { SocialAuthService } from "angularx-social-login";
import { FacebookLoginProvider, GoogleLoginProvider } from "angularx-social-login";
import { SocialAuthService } from "@abacritt/angularx-social-login";
import { FacebookLoginProvider, GoogleLoginProvider } from "@abacritt/angularx-social-login";

@Component({
selector: 'app-demo',
Expand Down Expand Up @@ -107,8 +107,8 @@ Once a user is logged in manual refresh token method can be triggered

```javascript

import { SocialAuthService } from "angularx-social-login";
import { GoogleLoginProvider } from "angularx-social-login";
import { SocialAuthService } from "@abacritt/angularx-social-login";
import { GoogleLoginProvider } from "@abacritt/angularx-social-login";

@Component({
selector: 'app-demo',
Expand All @@ -131,8 +131,8 @@ export class DemoComponent implements OnInit {
You are notified when user logs in or logs out. You receive a `SocialUser` object when the user logs in and a `null` when the user logs out. `SocialUser` object contains basic user information such as name, email, photo URL, etc. along with the `auth_token`. You can communicate the `auth_token` to your server to authenticate the user in server and make API calls from server.

```javascript
import { SocialAuthService } from "angularx-social-login";
import { SocialUser } from "angularx-social-login";
import { SocialAuthService } from "@abacritt/angularx-social-login";
import { SocialUser } from "@abacritt/angularx-social-login";

@Component({
selector: 'app-demo',
Expand Down

0 comments on commit b01836e

Please sign in to comment.