From 5adbdc98e8da0039bfdb7a4cdb4749f45e7b8ce9 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Tue, 8 Jul 2025 19:11:56 +0200 Subject: [PATCH] Update README.md see https://github.com/auth0/node-jsonwebtoken/issues/566#issuecomment-464170987 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 4e20dd9..b87c128 100644 --- a/README.md +++ b/README.md @@ -351,6 +351,9 @@ jwt.verify(token, 'shhhhh', function(err, decoded) { }); ``` +## Synchronous vs asynchronous + +There isn't any difference in performance between the synchronous and asynchronous APIs, because the asynchronous API calls the sync API internally. This means there's no reason to use the asynchronous API, and it's only there for historic reasons. ## Algorithms supported