Skip to content

Commit

Permalink
fix(component): added description in readme
Browse files Browse the repository at this point in the history
added description in readme
GH-125
  • Loading branch information
Karunesh Mani Tripathi committed Nov 9, 2023
1 parent 96ab8ca commit 317f6de
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,18 @@ this.bind(Strategies.Passport.GOOGLE_OAUTH2_VERIFIER).toProvider(
);
```

Now, bind this provider to the application in application.ts.

```ts
import { GoogleAuthStrategyFactoryProvider } from 'loopback4-authentication/passport-google-oauth2';
```

```ts
this.bind(Strategies.Passport.GOOGLE_OAUTH2_STRATEGY_FACTORY.key).toProvider(
GoogleAuthStrategyFactoryProvider
);
```

Finally, add the authenticate function as a sequence action to sequence.ts.

```ts
Expand Down

0 comments on commit 317f6de

Please sign in to comment.