Skip to content

Commit 85960e3

Browse files
authored
fixes typo in verifier function (#24)
1 parent 68c06bd commit 85960e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Create CRUD repository for the above model. Use loopback CLI.
113113
lb4 repository
114114
```
115115

116-
Add the verifier function for the strategy. You need to create a provider for the same. You can add your application specific business logic for client auth here. Here is simple example.
116+
Add the verifier function for the strategy. You need to create a provider for the same strategy. You can add your application specific business logic for client auth here. Here is simple example.
117117

118118
```ts
119119
import {Provider} from '@loopback/context';
@@ -306,7 +306,7 @@ export class BearerTokenVerifyProvider
306306
) {}
307307

308308
value(): VerifyFunction.BearerFn {
309-
return async (token) => {
309+
return async token => {
310310
const user = verify(token, process.env.JWT_SECRET as string, {
311311
issuer: process.env.JWT_ISSUER,
312312
}) as User;

0 commit comments

Comments
 (0)