Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
duysolo committed Nov 19, 2022
1 parent d3a9dcb commit 38a0289
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,20 @@ curl --request POST \
classes.

`@InjectPasswordHasher()`: inject `PasswordHasherService` to your injectable
classes.
classes. This is an alias for the statement below:

```typescript
import { Inject, Injectable } from '@nestjs/common'
import { AUTH_PASSWORD_HASHER } from '@mercury-labs/nest-auth'

@Injectable()
export class SampleService {
public constructor(
@Inject(AUTH_PASSWORD_HASHER)
protected readonly hasher: PasswordHasherService
) {}
}
```

### Controller Decorators

Expand Down

0 comments on commit 38a0289

Please sign in to comment.