Skip to content

Commit 6a380e6

Browse files
authored
docs: update readme to clarify fastify version compatibility (#350)
Signed-off-by: Simone Busoli <[email protected]>
1 parent 68b205f commit 6a380e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ JWT utils for Fastify, internally it uses [fast-jwt](https://github.com/nearform
88

99
**NOTE:** The plugin has been migrated from using `jsonwebtoken` to `fast-jwt`. Even though `fast-jwt` has 1:1 feature implementation with `jsonwebtoken`, some _exotic_ implementations might break. In that case please open an issue with details of your implementation. See [Upgrading notes](UPGRADING.md) for more details about what changes this migration introduced.
1010

11-
`@fastify/jwt` supports Fastify@3.
12-
`@fastify/jwt` [v1.x](https://github.com/fastify/fastify-jwt/tree/1.x)
11+
- `@fastify/jwt` >= v9 supports Fastify@5.
12+
- `@fastify/jwt` < v9 supports Fastify@4.
13+
- `@fastify/jwt` < v6 supports Fastify@3.
14+
- `@fastify/jwt` [v1.x](https://github.com/fastify/fastify-jwt/tree/1.x)
1315
supports both Fastify@2.
1416

1517
## Install

0 commit comments

Comments
 (0)