Skip to content

Commit 29e305b

Browse files
authored
docs(readme): spelling and grammar fixes (#284)
1 parent 61b1fa8 commit 29e305b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ A complete example is provided at [fastify-discord-oauth2-example](https://githu
7373
### Usage with `@fastify/cookie`
7474

7575
Since v7.2.0, `@fastify/oauth2` requires the use of cookies to securely implement the OAuth2 exchange. Therefore, if you need `@fastify/cookie` yourself,
76-
you will need to register it _before_ `@fastify/oauth2`.
76+
you will need to register it _before_ `@fastify/oauth2`.
7777

7878
```js
7979
const fastify = require('fastify')({ logger: { level: 'trace' } })
@@ -220,7 +220,7 @@ fastify.register(oauthPlugin, {
220220

221221
## Set custom state
222222

223-
The `generateStateFunction` accepts a function to generate the `state` parameter for the OAUTH flow. This function receives the Fastify instance's `request` object as parameter.
223+
The `generateStateFunction` accepts a function to generate the `state` parameter for the OAUTH flow. This function receives the Fastify instance's `request` object as a parameter.
224224
The `state` parameter will be also set into a `httpOnly`, `sameSite: Lax` cookie.
225225
When you set it, it is required to provide the function `checkStateFunction` in order to validate the states generated.
226226

@@ -334,7 +334,7 @@ E.g. For `name: 'customOauth2'`, the `simple-oauth2` instance will become access
334334

335335
`fastify.oauth2CustomOauth2.oauth2` and `fastify.customOauth2.oauth2`
336336

337-
In this manner we are able to register multiple OAuth providers and each OAuth providers `simple-oauth2` instance will live in it's own **namespace**.
337+
In this manner, we can register multiple OAuth providers and each OAuth providers `simple-oauth2` instance will live in its own **namespace**.
338338

339339
E.g.
340340

0 commit comments

Comments
 (0)