Skip to content

Commit

Permalink
fix typos in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeikal committed Feb 12, 2024
1 parent aac4e10 commit db1570f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ export class AppModule;
Inside your resolvers you can access the request and response objects
using the `@Context("req")` and `@Context("res")` decorators.

> If you are using fastify, you cannot access the response using `@Context("res")
due to a bug in `@nestjs/core`.
Access it instead with `@Context() { res }: { res: FastifyReply }`.
> If you are using fastify, you cannot access the response using `@Context("res")`
> due to a bug in `@nestjs/core`.
> Access it instead with `@Context() { res }: { res: FastifyReply }`.
## Getting the tokens inside a controller or resolver
Expand Down Expand Up @@ -214,7 +214,7 @@ import {
} from "@moveaxlab/nestjs-security";

@Authenticated("admin")
@UseInterceptor(RefreshCookieInterceptor)
@UseInterceptors(RefreshCookieInterceptor)
class MyController {
async myMethod(@RefreshToken() token: string) {
// use the token here
Expand Down

0 comments on commit db1570f

Please sign in to comment.