You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ fastify.register(oauthPlugin, {
91
91
### Schema configuration
92
92
93
93
You can specify your own schema for the `startRedirectPath` end-point. It allows you to create a well-documented document when using `fastify-swagger` together.
94
-
Note: `schema` option will override the `tags` option without merge them.
94
+
Note: `schema` option will override the `tags` option without merging them.
The `generateStateFunction` accepts a function to generate the `state` parameter for the OAUTH flow. This function receives the Fastify's `request` object as parameter.
122
-
When you set it, it is required to provide the function `checkStateFunction`also in order to validate the states generated.
121
+
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.
122
+
When you set it, it is required to provide the function `checkStateFunction` in order to validate the states generated.
123
123
124
124
```js
125
125
constvalidStates=newSet()
@@ -154,9 +154,9 @@ When you set it, it is required to provide the function `checkStateFunction` als
154
154
})
155
155
```
156
156
157
-
## Example
157
+
## Examples
158
158
159
-
See the [`example/`](./examples/) folder for more example.
159
+
See the [`example/`](./examples/) folder for more examples.
160
160
161
161
## Reference
162
162
@@ -228,4 +228,4 @@ declare module 'fastify' {
228
228
229
229
Licensed under [MIT](./LICENSE).
230
230
231
-
*NB:* See [`simple-oauth2`](https://github.com/lelylan/simple-oauth2) license too
231
+
*NB* See [`simple-oauth2`](https://github.com/lelylan/simple-oauth2) license too
0 commit comments