Skip to content

Commit

Permalink
docs(middleware): fix @Autorized typo (MichalLytek#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaknas authored and MichalLytek committed Feb 25, 2019
1 parent 526886c commit 62c0861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/middlewares.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const CompetitorDetector: MiddlewareFn = async ({ args }, next) => {

### Reusable middlewares

Sometimes the middleware has to be configurable, just like you pass `roles` array to the [`@Autorized()` decorator](authorization.md). In that case, you should create a simple middleware factory - a function that takes your configuration as a parameters and returns a middleware that use that provided value.
Sometimes the middleware has to be configurable, just like you pass `roles` array to the [`@Authorized()` decorator](authorization.md). In that case, you should create a simple middleware factory - a function that takes your configuration as a parameters and returns a middleware that use that provided value.

```typescript
export function NumberInterceptor(minValue: number): MiddlewareFn {
Expand Down Expand Up @@ -151,7 +151,7 @@ export class RecipeResolver {
}
```

You can also attach the resolver to `ObjectType` fields, the same way as with [`@Autorized()` decorator](authorization.md).
You can also attach the resolver to `ObjectType` fields, the same way as with [`@Authorized()` decorator](authorization.md).

```typescript
@ObjectType()
Expand Down

0 comments on commit 62c0861

Please sign in to comment.