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 7e47b54
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,19 @@ 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
// Customize authentication verify handlers
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 7e47b54

Please sign in to comment.